From 00f7fa2d999c0de13dac07cb3c081942ae2b159d Mon Sep 17 00:00:00 2001 From: khwezi Date: Sun, 8 Mar 2026 12:04:06 +0200 Subject: [PATCH] Refactored kaniko to use another config file path --- .drone.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.drone.yml b/.drone.yml index 1aa01b6..fd3349a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -32,12 +32,12 @@ steps: - name: build and push image: gcr.io/kaniko-project/executor:debug environment: - DOCKER_CONFIG: /drone/src/.docker + DOCKER_CONFIG: /kaniko/.docker commands: - - mkdir -p /drone/src/.docker - - echo $DOCKER_CONFIG_SECRET > /drone/src/.docker/config.json + - mkdir -p /kaniko/.docker + - echo "$DOCKER_CONFIG_SECRET" > /kaniko/.docker/config.json - /kaniko/executor - --context=. - --dockerfile=Dockerfile - --destination=index.docker.io/khwezi/webapitest:${DRONE_BUILD_NUMBER} - --destination=index.docker.io/khwezi/webapitest:latest \ No newline at end of file + --context=. + --dockerfile=Dockerfile + --destination=khwezi/webapitest:latest + --destination=khwezi/webapitest:${DRONE_BUILD_NUMBER} \ No newline at end of file