From 78d632e2c7cd3faff0379635c4a56f8b1d7c1e07 Mon Sep 17 00:00:00 2001 From: Blair Vanderlugt Date: Fri, 21 May 2021 16:43:53 +0000 Subject: [PATCH] Update ci_templates/.cic-template.yml --- ci_templates/.cic-template.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ci_templates/.cic-template.yml b/ci_templates/.cic-template.yml index 9ebd3233..42d1d132 100644 --- a/ci_templates/.cic-template.yml +++ b/ci_templates/.cic-template.yml @@ -31,6 +31,9 @@ variables: - 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 + rules: + - if: $CI_PIPELINE_SOURCE == "merge_request_event" + when: always .py_unittest_merge_request: @@ -38,6 +41,9 @@ variables: script: - docker load -i $APP-test-image.tar - docker images + rules: + - if: $CI_PIPELINE_SOURCE == "merge_request_event" + when: always .py_build_push: stage: build