2021-02-05 21:49:15 +01:00
|
|
|
.contract_migration_variables:
|
2021-02-05 17:06:31 +01:00
|
|
|
variables:
|
|
|
|
APP_NAME: contract-migration
|
2021-07-10 17:46:14 +02:00
|
|
|
DOCKERFILE_PATH: docker/Dockerfile_ci
|
|
|
|
CONTEXT: apps/$APP_NAME
|
2021-02-05 16:53:15 +01:00
|
|
|
|
|
|
|
build-mr-contract-migration:
|
|
|
|
extends:
|
|
|
|
- .py_build_merge_request
|
2021-02-05 21:49:15 +01:00
|
|
|
- .contract_migration_variables
|
2021-07-10 17:46:14 +02:00
|
|
|
rules:
|
|
|
|
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
|
|
|
changes:
|
|
|
|
- apps/contract-migration/**/*
|
|
|
|
when: always
|
2021-01-24 21:37:00 +01:00
|
|
|
|
2021-02-05 16:53:15 +01:00
|
|
|
build-push-contract-migration:
|
2021-01-24 21:37:00 +01:00
|
|
|
extends:
|
2021-02-05 16:53:15 +01:00
|
|
|
- .py_build_push
|
2021-02-05 21:49:15 +01:00
|
|
|
- .contract_migration_variables
|
2021-07-10 17:46:14 +02:00
|
|
|
rules:
|
|
|
|
- if: $CI_COMMIT_BRANCH == "master"
|
|
|
|
changes:
|
|
|
|
- apps/contract-migration/**/*
|
|
|
|
when: always
|