Update ci_templates/.cic-template.yml, apps/cic-eth/.gitlab-ci.yml, .gitlab-ci.yml, apps/contract-migration/.gitlab-ci.yml files
This commit is contained in:
parent
e3da256e66
commit
4ecf4f1214
@ -1,6 +1,6 @@
|
|||||||
include:
|
include:
|
||||||
- local: 'ci_templates/.cic-template.yml'
|
- local: 'ci_templates/.cic-template.yml'
|
||||||
# - local: 'apps/contract-migration/.gitlab-ci.yml'
|
- local: 'apps/contract-migration/.gitlab-ci.yml'
|
||||||
- local: 'apps/cic-eth/.gitlab-ci.yml'
|
- local: 'apps/cic-eth/.gitlab-ci.yml'
|
||||||
# - local: 'apps/cic-ussd/.gitlab-ci.yml'
|
# - local: 'apps/cic-ussd/.gitlab-ci.yml'
|
||||||
# - local: 'apps/cic-notify/.gitlab-ci.yml'
|
# - local: 'apps/cic-notify/.gitlab-ci.yml'
|
||||||
|
@ -7,9 +7,10 @@
|
|||||||
.cic_eth_changes_target:
|
.cic_eth_changes_target:
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
||||||
#changes:
|
changes:
|
||||||
#- $CONTEXT/$APP_NAME/**/*
|
- $CONTEXT/**/*
|
||||||
when: always
|
when: always
|
||||||
|
- when: never
|
||||||
|
|
||||||
build-mr-cic-eth:
|
build-mr-cic-eth:
|
||||||
extends:
|
extends:
|
||||||
|
@ -3,10 +3,18 @@
|
|||||||
APP_NAME: contract-migration
|
APP_NAME: contract-migration
|
||||||
DOCKERFILE_PATH: $APP_NAME/docker/Dockerfile_ci
|
DOCKERFILE_PATH: $APP_NAME/docker/Dockerfile_ci
|
||||||
|
|
||||||
|
# .contract_migration_changes_target:
|
||||||
|
# rules:
|
||||||
|
# - changes:
|
||||||
|
# - $CONTEXT/$APP_NAME/*
|
||||||
|
|
||||||
.contract_migration_changes_target:
|
.contract_migration_changes_target:
|
||||||
rules:
|
rules:
|
||||||
- changes:
|
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
||||||
- $CONTEXT/$APP_NAME/*
|
changes:
|
||||||
|
- $CONTEXT/**/*
|
||||||
|
when: always
|
||||||
|
- when: never
|
||||||
|
|
||||||
build-mr-contract-migration:
|
build-mr-contract-migration:
|
||||||
extends:
|
extends:
|
||||||
|
@ -16,9 +16,6 @@ variables:
|
|||||||
- 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 --destination $IMAGE_TAG
|
- /kaniko/executor --context $CONTEXT --dockerfile $DOCKERFILE_PATH $KANIKO_CACHE_ARGS --cache-repo $CI_REGISTRY_IMAGE --destination $IMAGE_TAG
|
||||||
rules:
|
|
||||||
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
|
||||||
when: always
|
|
||||||
|
|
||||||
.py_build_target_dev:
|
.py_build_target_dev:
|
||||||
stage: build
|
stage: build
|
||||||
@ -28,9 +25,6 @@ variables:
|
|||||||
- 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 dev --tarPath $APP_NAME-test-image.tar --destination $MR_IMAGE_TAG
|
- /kaniko/executor --context $CONTEXT --dockerfile $DOCKERFILE_PATH $KANIKO_CACHE_ARGS --cache-repo $CI_REGISTRY_IMAGE --target dev --tarPath $APP_NAME-test-image.tar --destination $MR_IMAGE_TAG
|
||||||
rules:
|
|
||||||
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
|
||||||
when: always
|
|
||||||
|
|
||||||
.py_build_push:
|
.py_build_push:
|
||||||
stage: build
|
stage: build
|
||||||
|
Loading…
Reference in New Issue
Block a user