Skip to content
Snippets Groups Projects
Commit 1fe04626 authored by Burak Hançerli's avatar Burak Hançerli :headphones:
Browse files

QDS-11027 Move prod deployment to after release creation

parent 5b8dce6b
No related branches found
No related tags found
1 merge request!6QDS-11027 Move prod deployment to after release creation
Pipeline #63367 passed
......@@ -14,7 +14,6 @@ workflow:
stages:
- build
- trigger
- release
include:
......
......@@ -74,35 +74,3 @@ build-wasm-multiarch:
- cmake --install ${QDS_BUILD_PATH}
- echo "PREVIOUS_JOB_ID=${CI_JOB_ID}" >> build.env
- echo "JOB_TARGET_ARCH=${QDS_CI_JOB_TARGET_ARCH}" >> build.env
.trigger-common:
stage : trigger
variables: # these variables are passed to the downstream pipeline
QDS_CI_PARENT_PIPELINE_ID: ${CI_PIPELINE_ID}
QDS_CI_ARTIFACT_JOB_ID: ${PREVIOUS_JOB_ID}
QDS_CI_PARENT_PROJECT_ID: ${CI_PROJECT_ID}
QDS_CI_PARENT_PIPELINE_ARCH: ${JOB_TARGET_ARCH}
needs:
- job: build-wasm-multiarch
artifacts: true
optional: true
trigger:
project: design-studio/design-viewer/design-viewer-web-service
branch: master
strategy: depend
forward:
yaml_variables: true
pipeline_variables: false
trigger-test-deployment:
extends: .trigger-common
rules:
- if: $CI_COMMIT_TAG == null
trigger-prod-deployment:
extends: .trigger-common
rules:
- if: $CI_COMMIT_TAG
variables:
QDS_CI_PARENT_PIPELINE_RELEASE_TAG: $CI_COMMIT_TAG
# these are trigger jobs for the downstream pipeline in Design Viewer Web Service project
.trigger-common:
variables: # these variables are passed to the downstream pipeline
QDS_CI_PARENT_PIPELINE_ID: ${CI_PIPELINE_ID}
QDS_CI_ARTIFACT_JOB_ID: ${PREVIOUS_JOB_ID}
QDS_CI_PARENT_PROJECT_ID: ${CI_PROJECT_ID}
QDS_CI_PARENT_PIPELINE_ARCH: ${JOB_TARGET_ARCH}
needs:
- job: build-wasm-multiarch
artifacts: true
optional: true
trigger:
project: design-studio/design-viewer/design-viewer-web-service
branch: master
strategy: depend
forward:
yaml_variables: true
pipeline_variables: false
trigger-test-deployment:
extends: .trigger-common
stage: build
rules:
- if: $CI_COMMIT_TAG == null
trigger-prod-deployment:
extends: .trigger-common
stage: release
rules:
- if: $CI_COMMIT_TAG
needs:
- job: create-release
variables:
QDS_CI_PARENT_PIPELINE_RELEASE_TAG: $CI_COMMIT_TAG
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment