From fd23dad5b886e7c90d782b167788aaa206818065 Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Mon, 18 Mar 2019 11:33:37 +0530 Subject: [PATCH] ci: specify `DOCKER_CONFIG` env variable for kaniko 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 65a0b025af6381e32e2cface70e98afd97a71334) --- Jenkinsfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 48393f0266..bcbbc2e5c5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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: