Update ci_templates/.cic-template.yml, apps/cic-eth/.gitlab-ci.yml files
This commit is contained in:
parent
a96508dac4
commit
52239e2e82
@ -21,7 +21,7 @@ test-mr-cic-eth:
|
|||||||
- .cic_eth_variables
|
- .cic_eth_variables
|
||||||
- .cic_eth_changes_target
|
- .cic_eth_changes_target
|
||||||
stage: test
|
stage: test
|
||||||
image: $CI_REGISTRY_IMAGE/$APP_NAME-test:latest
|
image: $IMAGE_TAG
|
||||||
script:
|
script:
|
||||||
- cd apps/$APP_NAME/
|
- cd apps/$APP_NAME/
|
||||||
- pytest -x --cov=cic_eth --cov-fail-under=90 --cov-report term-missing tests
|
- pytest -x --cov=cic_eth --cov-fail-under=90 --cov-report term-missing tests
|
||||||
|
@ -22,8 +22,9 @@ variables:
|
|||||||
stage: build
|
stage: build
|
||||||
variables:
|
variables:
|
||||||
IMAGE_TAG_BASE: $CI_REGISTRY_IMAGE/$APP_NAME:$CI_COMMIT_BRANCH-$CI_COMMIT_SHORT_SHA
|
IMAGE_TAG_BASE: $CI_REGISTRY_IMAGE/$APP_NAME:$CI_COMMIT_BRANCH-$CI_COMMIT_SHORT_SHA
|
||||||
|
IMAGE_TAG: "$IMAGE_TAG_BASE-$(date +%s)"
|
||||||
script:
|
script:
|
||||||
- export IMAGE_TAG="$IMAGE_TAG_BASE-$(date +%s)"
|
# - export IMAGE_TAG="$IMAGE_TAG_BASE-$(date +%s)"
|
||||||
- mkdir -p /kaniko/.docker
|
- mkdir -p /kaniko/.docker
|
||||||
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > "/kaniko/.docker/config.json"
|
- 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 $IMAGE_TAG
|
- /kaniko/executor --context $CONTEXT --dockerfile $DOCKERFILE_PATH $KANIKO_CACHE_ARGS --cache-repo $CI_REGISTRY_IMAGE --target test --tarPath $APP_NAME-test-image.tar --destination $IMAGE_TAG
|
||||||
|
Loading…
Reference in New Issue
Block a user