Update ci_templates/.cic-template.yml
This commit is contained in:
parent
575b2a196a
commit
8713952ed4
@ -18,32 +18,32 @@ variables:
|
|||||||
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
||||||
when: always
|
when: always
|
||||||
|
|
||||||
# .py_build_unittest_merge_request:
|
.py_build_unittest_merge_request:
|
||||||
# stage: build
|
stage: build
|
||||||
# variables:
|
variables:
|
||||||
# CI_DEBUG_TRACE: "true"
|
CI_DEBUG_TRACE: "true"
|
||||||
# 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 --destination $CI_REGISTRY_IMAGE/$APP_NAME-test:latest
|
|
||||||
# rules:
|
|
||||||
# - if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
|
||||||
# when: always
|
|
||||||
|
|
||||||
|
|
||||||
.py_unittest_merge_request:
|
|
||||||
stage: test
|
|
||||||
image: $CI_REGISTRY_IMAGE/$APP_NAME-test:latest
|
|
||||||
script:
|
script:
|
||||||
- ls
|
- mkdir -p /kaniko/.docker
|
||||||
- pwd
|
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > "/kaniko/.docker/config.json"
|
||||||
- env
|
- /kaniko/executor --context $CONTEXT --dockerfile $DOCKERFILE_PATH $KANIKO_CACHE_ARGS --cache-repo $CI_REGISTRY_IMAGE --target test --tarPath $APP_NAME-test-image.tar --destination $CI_REGISTRY_IMAGE/$APP_NAME-test:latest
|
||||||
- cd apps/$APP_NAME/
|
|
||||||
- pytest
|
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
||||||
when: always
|
when: always
|
||||||
|
|
||||||
|
|
||||||
|
# .py_unittest_merge_request:
|
||||||
|
# stage: test
|
||||||
|
# image: $CI_REGISTRY_IMAGE/$APP_NAME-test:latest
|
||||||
|
# script:
|
||||||
|
# - ls
|
||||||
|
# - pwd
|
||||||
|
# - env
|
||||||
|
# - cd apps/$APP_NAME/
|
||||||
|
# - pytest
|
||||||
|
# rules:
|
||||||
|
# - if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
||||||
|
# when: always
|
||||||
|
|
||||||
.py_build_push:
|
.py_build_push:
|
||||||
stage: build
|
stage: build
|
||||||
variables:
|
variables:
|
||||||
|
Loading…
Reference in New Issue
Block a user