Update ci_templates/.cic-template.yml

This commit is contained in:
Blair Vanderlugt 2021-05-21 16:55:55 +00:00
parent c10783aebf
commit aae0077d66

View File

@ -30,7 +30,7 @@ variables:
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-test-image.tar --no-push
- /kaniko/executor --context $CONTEXT --dockerfile $DOCKERFILE_PATH $KANIKO_CACHE_ARGS --cache-repo $CI_REGISTRY_IMAGE --target test --tarPath $APP-test-image.tar --no-push --destination $CI_REGISTRY_IMAGE/$APP_NAME:latest
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
when: always