Loading _deployment-functional-unit.yml +4 −55 Original line number Diff line number Diff line include: - local: '/_deployment.yml' variables: PROJECT_PARENT_NAME: functional-unit .deploy: variables: STACK: ${PROJECT_PARENT_NAME} SERVICES_TO_CHECK: ${PROJECT_PARENT_NAME}_${CI_PROJECT_NAME}-${FUNCTIONAL_UNIT_MICROSERVICE_NAME} .deploy-microservice-development: extends: .deploy-development variables: COMPOSE_FILE: docker-compose.${CI_PROJECT_NAME}-${FUNCTIONAL_UNIT_MICROSERVICE_NAME}.tmpl.yml:docker-compose.${CI_PROJECT_NAME}-${FUNCTIONAL_UNIT_MICROSERVICE_NAME}.dev.yml environment: name: dev/${CI_PROJECT_NAME}-${FUNCTIONAL_UNIT_MICROSERVICE_NAME} url: https://${DEV_PUBLIC_HOSTNAME}/api/${CI_PROJECT_NAME}/${FUNCTIONAL_UNIT_MICROSERVICE_NAME} .deploy-microservice-production: extends: .deploy-production variables: COMPOSE_FILE: docker-compose.${CI_PROJECT_NAME}-${FUNCTIONAL_UNIT_MICROSERVICE_NAME}.tmpl.yml:docker-compose.${CI_PROJECT_NAME}-${FUNCTIONAL_UNIT_MICROSERVICE_NAME}.prod.yml environment: name: pro/${CI_PROJECT_NAME}-${FUNCTIONAL_UNIT_MICROSERVICE_NAME} url: https://${PRO_PUBLIC_HOSTNAME}/api/${CI_PROJECT_NAME}/${FUNCTIONAL_UNIT_MICROSERVICE_NAME} .deploy-commands: variables: &deploy-commands-variables FUNCTIONAL_UNIT_MICROSERVICE_NAME: commands STATUS_CHECK_DELAY: 300 # Only for backward compatibility, migrate ASAP your project includes to templates included here! .deploy-view: variables: &deploy-view-variables FUNCTIONAL_UNIT_MICROSERVICE_NAME: view STATUS_CHECK_DELAY: 180 .deploy-commands-development: extends: .deploy-microservice-development variables: <<: *deploy-commands-variables .deploy-commands-production: extends: .deploy-microservice-production variables: <<: *deploy-commands-variables .deploy-view-development: extends: .deploy-microservice-development variables: <<: *deploy-view-variables .deploy-view-production: extends: .deploy-microservice-production variables: <<: *deploy-view-variables include: - local: '/deployment-service/functional-unit/_docker-deploy.yml' - local: '/deprecation-warning.yml' deployment-functional-unit.yml +4 −100 Original line number Diff line number Diff line include: - local: '/_deployment-functional-unit.yml' .deploy-branch-base: variables: &deploy-branch-base-variables DD_IMAGE_NAME: ${CI_REGISTRY_IMAGE}/${CI_COMMIT_REF_SLUG} DD_IMAGE_TAG: ${CI_COMMIT_SHA} .deploy-tag-base: variables: &deploy-tag-base-variables DD_IMAGE_NAME: ${CI_REGISTRY_IMAGE} DD_IMAGE_TAG: ${CI_COMMIT_TAG} .deploy-support-branch: &deploy-support-branch rules: - if: $CI_MERGE_REQUEST_ID || $CI_COMMIT_TAG || $CI_PIPELINE_SOURCE == "schedule" || $CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH == "main" when: never - if: $CI_COMMIT_BRANCH when: manual allow_failure: true deploy-commands-support-branch-development: extends: .deploy-commands-development variables: <<: *deploy-branch-base-variables <<: *deploy-support-branch deploy-view-support-branch-development: extends: .deploy-view-development variables: <<: *deploy-branch-base-variables <<: *deploy-support-branch .deploy-stable-branch: &deploy-stable-branch rules: - if: $CI_MERGE_REQUEST_ID || $CI_COMMIT_TAG || $CI_PIPELINE_SOURCE == "schedule" when: never - if: $CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH == "main" when: manual allow_failure: true deploy-commands-stable-branch-development: extends: .deploy-commands-development variables: <<: *deploy-branch-base-variables <<: *deploy-stable-branch # Only for backward compatibility, migrate ASAP your project includes to templates included here! deploy-commands-stable-branch-production: extends: .deploy-commands-production variables: <<: *deploy-branch-base-variables <<: *deploy-stable-branch deploy-view-stable-branch-development: extends: .deploy-view-development variables: <<: *deploy-branch-base-variables <<: *deploy-stable-branch deploy-view-stable-branch-production: extends: .deploy-view-production variables: <<: *deploy-branch-base-variables <<: *deploy-stable-branch .deploy-tag: &deploy-tag rules: - if: $CI_COMMIT_TAG when: manual allow_failure: true deploy-commands-tag-development: extends: .deploy-commands-development variables: <<: *deploy-tag-base-variables <<: *deploy-tag deploy-commands-tag-production: extends: .deploy-commands-production variables: <<: *deploy-tag-base-variables <<: *deploy-tag deploy-view-tag-development: extends: .deploy-view-development variables: <<: *deploy-tag-base-variables <<: *deploy-tag deploy-view-tag-production: extends: .deploy-view-production variables: <<: *deploy-tag-base-variables <<: *deploy-tag include: - local: '/deployment-service/functional-unit/docker-deploy.yml' - local: '/deprecation-warning.yml' deployment-service/functional-unit/_docker-deploy.yml 0 → 100644 +56 −0 Original line number Diff line number Diff line include: - local: '/deployment-service/_docker-deploy.yml' variables: PROJECT_PARENT_NAME: functional-unit .deploy: variables: STACK: ${PROJECT_PARENT_NAME} SERVICES_TO_CHECK: ${PROJECT_PARENT_NAME}_${CI_PROJECT_NAME}-${FUNCTIONAL_UNIT_MICROSERVICE_NAME} .deploy-microservice-development: extends: .deploy-development variables: COMPOSE_FILE: docker-compose.${CI_PROJECT_NAME}-${FUNCTIONAL_UNIT_MICROSERVICE_NAME}.tmpl.yml:docker-compose.${CI_PROJECT_NAME}-${FUNCTIONAL_UNIT_MICROSERVICE_NAME}.dev.yml environment: name: dev/${CI_PROJECT_NAME}-${FUNCTIONAL_UNIT_MICROSERVICE_NAME} url: https://${DEV_PUBLIC_HOSTNAME}/api/${CI_PROJECT_NAME}/${FUNCTIONAL_UNIT_MICROSERVICE_NAME} .deploy-microservice-production: extends: .deploy-production variables: COMPOSE_FILE: docker-compose.${CI_PROJECT_NAME}-${FUNCTIONAL_UNIT_MICROSERVICE_NAME}.tmpl.yml:docker-compose.${CI_PROJECT_NAME}-${FUNCTIONAL_UNIT_MICROSERVICE_NAME}.prod.yml environment: name: pro/${CI_PROJECT_NAME}-${FUNCTIONAL_UNIT_MICROSERVICE_NAME} url: https://${PRO_PUBLIC_HOSTNAME}/api/${CI_PROJECT_NAME}/${FUNCTIONAL_UNIT_MICROSERVICE_NAME} .deploy-commands: variables: &deploy-commands-variables FUNCTIONAL_UNIT_MICROSERVICE_NAME: commands STATUS_CHECK_DELAY: 300 .deploy-view: variables: &deploy-view-variables FUNCTIONAL_UNIT_MICROSERVICE_NAME: view STATUS_CHECK_DELAY: 180 .deploy-commands-development: extends: .deploy-microservice-development variables: <<: *deploy-commands-variables .deploy-commands-production: extends: .deploy-microservice-production variables: <<: *deploy-commands-variables .deploy-view-development: extends: .deploy-microservice-development variables: <<: *deploy-view-variables .deploy-view-production: extends: .deploy-microservice-production variables: <<: *deploy-view-variables deployment-service/functional-unit/docker-deploy.yml 0 → 100644 +101 −0 Original line number Diff line number Diff line include: - local: '/deployment-service/functional-unit/_docker-deploy.yml' .deploy-branch-base: variables: &deploy-branch-base-variables DD_IMAGE_NAME: ${CI_REGISTRY_IMAGE}/${CI_COMMIT_REF_SLUG} DD_IMAGE_TAG: ${CI_COMMIT_SHA} .deploy-tag-base: variables: &deploy-tag-base-variables DD_IMAGE_NAME: ${CI_REGISTRY_IMAGE} DD_IMAGE_TAG: ${CI_COMMIT_TAG} .deploy-support-branch: &deploy-support-branch rules: - if: $CI_MERGE_REQUEST_ID || $CI_COMMIT_TAG || $CI_PIPELINE_SOURCE == "schedule" || $CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH == "main" when: never - if: $CI_COMMIT_BRANCH when: manual allow_failure: true deploy-commands-support-branch-development: extends: .deploy-commands-development variables: <<: *deploy-branch-base-variables <<: *deploy-support-branch deploy-view-support-branch-development: extends: .deploy-view-development variables: <<: *deploy-branch-base-variables <<: *deploy-support-branch .deploy-stable-branch: &deploy-stable-branch rules: - if: $CI_MERGE_REQUEST_ID || $CI_COMMIT_TAG || $CI_PIPELINE_SOURCE == "schedule" when: never - if: $CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH == "main" when: manual allow_failure: true deploy-commands-stable-branch-development: extends: .deploy-commands-development variables: <<: *deploy-branch-base-variables <<: *deploy-stable-branch deploy-commands-stable-branch-production: extends: .deploy-commands-production variables: <<: *deploy-branch-base-variables <<: *deploy-stable-branch deploy-view-stable-branch-development: extends: .deploy-view-development variables: <<: *deploy-branch-base-variables <<: *deploy-stable-branch deploy-view-stable-branch-production: extends: .deploy-view-production variables: <<: *deploy-branch-base-variables <<: *deploy-stable-branch .deploy-tag: &deploy-tag rules: - if: $CI_COMMIT_TAG when: manual allow_failure: true deploy-commands-tag-development: extends: .deploy-commands-development variables: <<: *deploy-tag-base-variables <<: *deploy-tag deploy-commands-tag-production: extends: .deploy-commands-production variables: <<: *deploy-tag-base-variables <<: *deploy-tag deploy-view-tag-development: extends: .deploy-view-development variables: <<: *deploy-tag-base-variables <<: *deploy-tag deploy-view-tag-production: extends: .deploy-view-production variables: <<: *deploy-tag-base-variables <<: *deploy-tag Loading
_deployment-functional-unit.yml +4 −55 Original line number Diff line number Diff line include: - local: '/_deployment.yml' variables: PROJECT_PARENT_NAME: functional-unit .deploy: variables: STACK: ${PROJECT_PARENT_NAME} SERVICES_TO_CHECK: ${PROJECT_PARENT_NAME}_${CI_PROJECT_NAME}-${FUNCTIONAL_UNIT_MICROSERVICE_NAME} .deploy-microservice-development: extends: .deploy-development variables: COMPOSE_FILE: docker-compose.${CI_PROJECT_NAME}-${FUNCTIONAL_UNIT_MICROSERVICE_NAME}.tmpl.yml:docker-compose.${CI_PROJECT_NAME}-${FUNCTIONAL_UNIT_MICROSERVICE_NAME}.dev.yml environment: name: dev/${CI_PROJECT_NAME}-${FUNCTIONAL_UNIT_MICROSERVICE_NAME} url: https://${DEV_PUBLIC_HOSTNAME}/api/${CI_PROJECT_NAME}/${FUNCTIONAL_UNIT_MICROSERVICE_NAME} .deploy-microservice-production: extends: .deploy-production variables: COMPOSE_FILE: docker-compose.${CI_PROJECT_NAME}-${FUNCTIONAL_UNIT_MICROSERVICE_NAME}.tmpl.yml:docker-compose.${CI_PROJECT_NAME}-${FUNCTIONAL_UNIT_MICROSERVICE_NAME}.prod.yml environment: name: pro/${CI_PROJECT_NAME}-${FUNCTIONAL_UNIT_MICROSERVICE_NAME} url: https://${PRO_PUBLIC_HOSTNAME}/api/${CI_PROJECT_NAME}/${FUNCTIONAL_UNIT_MICROSERVICE_NAME} .deploy-commands: variables: &deploy-commands-variables FUNCTIONAL_UNIT_MICROSERVICE_NAME: commands STATUS_CHECK_DELAY: 300 # Only for backward compatibility, migrate ASAP your project includes to templates included here! .deploy-view: variables: &deploy-view-variables FUNCTIONAL_UNIT_MICROSERVICE_NAME: view STATUS_CHECK_DELAY: 180 .deploy-commands-development: extends: .deploy-microservice-development variables: <<: *deploy-commands-variables .deploy-commands-production: extends: .deploy-microservice-production variables: <<: *deploy-commands-variables .deploy-view-development: extends: .deploy-microservice-development variables: <<: *deploy-view-variables .deploy-view-production: extends: .deploy-microservice-production variables: <<: *deploy-view-variables include: - local: '/deployment-service/functional-unit/_docker-deploy.yml' - local: '/deprecation-warning.yml'
deployment-functional-unit.yml +4 −100 Original line number Diff line number Diff line include: - local: '/_deployment-functional-unit.yml' .deploy-branch-base: variables: &deploy-branch-base-variables DD_IMAGE_NAME: ${CI_REGISTRY_IMAGE}/${CI_COMMIT_REF_SLUG} DD_IMAGE_TAG: ${CI_COMMIT_SHA} .deploy-tag-base: variables: &deploy-tag-base-variables DD_IMAGE_NAME: ${CI_REGISTRY_IMAGE} DD_IMAGE_TAG: ${CI_COMMIT_TAG} .deploy-support-branch: &deploy-support-branch rules: - if: $CI_MERGE_REQUEST_ID || $CI_COMMIT_TAG || $CI_PIPELINE_SOURCE == "schedule" || $CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH == "main" when: never - if: $CI_COMMIT_BRANCH when: manual allow_failure: true deploy-commands-support-branch-development: extends: .deploy-commands-development variables: <<: *deploy-branch-base-variables <<: *deploy-support-branch deploy-view-support-branch-development: extends: .deploy-view-development variables: <<: *deploy-branch-base-variables <<: *deploy-support-branch .deploy-stable-branch: &deploy-stable-branch rules: - if: $CI_MERGE_REQUEST_ID || $CI_COMMIT_TAG || $CI_PIPELINE_SOURCE == "schedule" when: never - if: $CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH == "main" when: manual allow_failure: true deploy-commands-stable-branch-development: extends: .deploy-commands-development variables: <<: *deploy-branch-base-variables <<: *deploy-stable-branch # Only for backward compatibility, migrate ASAP your project includes to templates included here! deploy-commands-stable-branch-production: extends: .deploy-commands-production variables: <<: *deploy-branch-base-variables <<: *deploy-stable-branch deploy-view-stable-branch-development: extends: .deploy-view-development variables: <<: *deploy-branch-base-variables <<: *deploy-stable-branch deploy-view-stable-branch-production: extends: .deploy-view-production variables: <<: *deploy-branch-base-variables <<: *deploy-stable-branch .deploy-tag: &deploy-tag rules: - if: $CI_COMMIT_TAG when: manual allow_failure: true deploy-commands-tag-development: extends: .deploy-commands-development variables: <<: *deploy-tag-base-variables <<: *deploy-tag deploy-commands-tag-production: extends: .deploy-commands-production variables: <<: *deploy-tag-base-variables <<: *deploy-tag deploy-view-tag-development: extends: .deploy-view-development variables: <<: *deploy-tag-base-variables <<: *deploy-tag deploy-view-tag-production: extends: .deploy-view-production variables: <<: *deploy-tag-base-variables <<: *deploy-tag include: - local: '/deployment-service/functional-unit/docker-deploy.yml' - local: '/deprecation-warning.yml'
deployment-service/functional-unit/_docker-deploy.yml 0 → 100644 +56 −0 Original line number Diff line number Diff line include: - local: '/deployment-service/_docker-deploy.yml' variables: PROJECT_PARENT_NAME: functional-unit .deploy: variables: STACK: ${PROJECT_PARENT_NAME} SERVICES_TO_CHECK: ${PROJECT_PARENT_NAME}_${CI_PROJECT_NAME}-${FUNCTIONAL_UNIT_MICROSERVICE_NAME} .deploy-microservice-development: extends: .deploy-development variables: COMPOSE_FILE: docker-compose.${CI_PROJECT_NAME}-${FUNCTIONAL_UNIT_MICROSERVICE_NAME}.tmpl.yml:docker-compose.${CI_PROJECT_NAME}-${FUNCTIONAL_UNIT_MICROSERVICE_NAME}.dev.yml environment: name: dev/${CI_PROJECT_NAME}-${FUNCTIONAL_UNIT_MICROSERVICE_NAME} url: https://${DEV_PUBLIC_HOSTNAME}/api/${CI_PROJECT_NAME}/${FUNCTIONAL_UNIT_MICROSERVICE_NAME} .deploy-microservice-production: extends: .deploy-production variables: COMPOSE_FILE: docker-compose.${CI_PROJECT_NAME}-${FUNCTIONAL_UNIT_MICROSERVICE_NAME}.tmpl.yml:docker-compose.${CI_PROJECT_NAME}-${FUNCTIONAL_UNIT_MICROSERVICE_NAME}.prod.yml environment: name: pro/${CI_PROJECT_NAME}-${FUNCTIONAL_UNIT_MICROSERVICE_NAME} url: https://${PRO_PUBLIC_HOSTNAME}/api/${CI_PROJECT_NAME}/${FUNCTIONAL_UNIT_MICROSERVICE_NAME} .deploy-commands: variables: &deploy-commands-variables FUNCTIONAL_UNIT_MICROSERVICE_NAME: commands STATUS_CHECK_DELAY: 300 .deploy-view: variables: &deploy-view-variables FUNCTIONAL_UNIT_MICROSERVICE_NAME: view STATUS_CHECK_DELAY: 180 .deploy-commands-development: extends: .deploy-microservice-development variables: <<: *deploy-commands-variables .deploy-commands-production: extends: .deploy-microservice-production variables: <<: *deploy-commands-variables .deploy-view-development: extends: .deploy-microservice-development variables: <<: *deploy-view-variables .deploy-view-production: extends: .deploy-microservice-production variables: <<: *deploy-view-variables
deployment-service/functional-unit/docker-deploy.yml 0 → 100644 +101 −0 Original line number Diff line number Diff line include: - local: '/deployment-service/functional-unit/_docker-deploy.yml' .deploy-branch-base: variables: &deploy-branch-base-variables DD_IMAGE_NAME: ${CI_REGISTRY_IMAGE}/${CI_COMMIT_REF_SLUG} DD_IMAGE_TAG: ${CI_COMMIT_SHA} .deploy-tag-base: variables: &deploy-tag-base-variables DD_IMAGE_NAME: ${CI_REGISTRY_IMAGE} DD_IMAGE_TAG: ${CI_COMMIT_TAG} .deploy-support-branch: &deploy-support-branch rules: - if: $CI_MERGE_REQUEST_ID || $CI_COMMIT_TAG || $CI_PIPELINE_SOURCE == "schedule" || $CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH == "main" when: never - if: $CI_COMMIT_BRANCH when: manual allow_failure: true deploy-commands-support-branch-development: extends: .deploy-commands-development variables: <<: *deploy-branch-base-variables <<: *deploy-support-branch deploy-view-support-branch-development: extends: .deploy-view-development variables: <<: *deploy-branch-base-variables <<: *deploy-support-branch .deploy-stable-branch: &deploy-stable-branch rules: - if: $CI_MERGE_REQUEST_ID || $CI_COMMIT_TAG || $CI_PIPELINE_SOURCE == "schedule" when: never - if: $CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH == "main" when: manual allow_failure: true deploy-commands-stable-branch-development: extends: .deploy-commands-development variables: <<: *deploy-branch-base-variables <<: *deploy-stable-branch deploy-commands-stable-branch-production: extends: .deploy-commands-production variables: <<: *deploy-branch-base-variables <<: *deploy-stable-branch deploy-view-stable-branch-development: extends: .deploy-view-development variables: <<: *deploy-branch-base-variables <<: *deploy-stable-branch deploy-view-stable-branch-production: extends: .deploy-view-production variables: <<: *deploy-branch-base-variables <<: *deploy-stable-branch .deploy-tag: &deploy-tag rules: - if: $CI_COMMIT_TAG when: manual allow_failure: true deploy-commands-tag-development: extends: .deploy-commands-development variables: <<: *deploy-tag-base-variables <<: *deploy-tag deploy-commands-tag-production: extends: .deploy-commands-production variables: <<: *deploy-tag-base-variables <<: *deploy-tag deploy-view-tag-development: extends: .deploy-view-development variables: <<: *deploy-tag-base-variables <<: *deploy-tag deploy-view-tag-production: extends: .deploy-view-production variables: <<: *deploy-tag-base-variables <<: *deploy-tag