Skip to content
This repository has been archived by the owner on Feb 9, 2022. It is now read-only.

Commit

Permalink
ci: specify DOCKER_CONFIG env variable for kaniko
Browse files Browse the repository at this point in the history
kaniko does not appear to pick docker hub credentials placed at
`/root/.docker/` anymore. As a result the release stage was not able to
push images to the docker registry. In this PR we explicitly specify the
path to the docker `config.json` file in the `DOCKER_CONFIG` variable.

We've also updated the kaniko version in this PR.

(cherry picked from commit 65a0b02)
  • Loading branch information
Sameer Naik committed Mar 18, 2019
1 parent f547817 commit fd23dad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Jenkinsfile
Expand Up @@ -180,8 +180,11 @@ spec:
command:
- 'cat'
- name: 'kaniko'
image: 'gcr.io/kaniko-project/executor:debug-v0.8.0'
image: 'gcr.io/kaniko-project/executor:debug-v0.9.0'
tty: true
env:
- name: 'DOCKER_CONFIG'
value: '/root/.docker'
command:
- '/busybox/cat'
volumeMounts:
Expand Down

0 comments on commit fd23dad

Please sign in to comment.