From 559f386657c215e0bc44dfcb16acb6365df75bbe Mon Sep 17 00:00:00 2001 From: Blair Vanderlugt Date: Fri, 21 May 2021 17:21:50 +0000 Subject: [PATCH] Update ci_templates/.cic-template.yml --- ci_templates/.cic-template.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ci_templates/.cic-template.yml b/ci_templates/.cic-template.yml index 42a13ad8..d4ccc6ac 100644 --- a/ci_templates/.cic-template.yml +++ b/ci_templates/.cic-template.yml @@ -28,6 +28,8 @@ variables: expire_in: 1 day when: on_success script: + - mkdir -p /kaniko/.docker + - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > "/kaniko/.docker/config.json" - /kaniko/executor --context $CONTEXT --dockerfile $DOCKERFILE_PATH $KANIKO_CACHE_ARGS --cache-repo $CI_REGISTRY_IMAGE --target test --tarPath $APP_NAME-test-image.tar --no-push --destination $CI_REGISTRY_IMAGE/$APP_NAME:latest rules: - if: $CI_PIPELINE_SOURCE == "merge_request_event"