From 3b83a3bb085d2df4102f6206e0573d60d2612dc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20K=C3=BCnzel?= <simonk@fsmpi.rwth-aachen.de> Date: Tue, 2 Jul 2024 17:30:18 +0200 Subject: [PATCH] Include commit tag in deploy pipeline --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 77d0f31..981f456 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 -- GitLab