diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 77d0f312c426576fa90fe51fc9d3f921f58f739b..981f45656d346690aa92be9d53fa8d7717682965 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,10 +1,11 @@ trigger-production: stage: deploy rules: - - if: $CI_COMMIT_BRANCH == "live_production" + - if: $CI_COMMIT_BRANCH == "live_production" && $CI_COMMIT_TAG != null variables: BUILD_TYPE: backend_api UPSTREAM_COMMIT_SHA: $CI_COMMIT_SHA + UPSTREAM_COMMIT_TAG: $CI_COMMIT_TAG trigger: # Pipeline B in other project can only be triggered if the user triggering this pipeline has permission to trigger B project: videoag_infra/production