diff --git a/ci_templates/.cic-template.yml b/ci_templates/.cic-template.yml index 99a43669..2b5ae72c 100644 --- a/ci_templates/.cic-template.yml +++ b/ci_templates/.cic-template.yml @@ -24,13 +24,11 @@ variables: CI_DEBUG_TRACE: "true" artifacts: paths: - - $APP-test-image.tar - expire_in: 1 week + - $APP_NAME-test-image.tar + 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-test-image.tar --no-push --destination $CI_REGISTRY_IMAGE/$APP_NAME:latest + - /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" when: always @@ -39,7 +37,7 @@ variables: .py_unittest_merge_request: stage: test script: - - docker load -i $APP-test-image.tar + - docker load -i $APP_NAME-test-image.tar" - docker images rules: - if: $CI_PIPELINE_SOURCE == "merge_request_event"