Update ci_templates/.cic-template.yml
This commit is contained in:
parent
91b964eefc
commit
053a679a5e
@ -24,13 +24,11 @@ variables:
|
|||||||
CI_DEBUG_TRACE: "true"
|
CI_DEBUG_TRACE: "true"
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- $APP-test-image.tar
|
- $APP_NAME-test-image.tar
|
||||||
expire_in: 1 week
|
expire_in: 1 day
|
||||||
when: on_success
|
when: on_success
|
||||||
script:
|
script:
|
||||||
- mkdir -p /kaniko/.docker
|
- /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
|
||||||
- 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
|
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
||||||
when: always
|
when: always
|
||||||
@ -39,7 +37,7 @@ variables:
|
|||||||
.py_unittest_merge_request:
|
.py_unittest_merge_request:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- docker load -i $APP-test-image.tar
|
- docker load -i $APP_NAME-test-image.tar"
|
||||||
- docker images
|
- docker images
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
||||||
|
Loading…
Reference in New Issue
Block a user