From 9f3d3f5ef16057871e08fd1fa4d4f610a05c2cd2 Mon Sep 17 00:00:00 2001
From: Dorian Koch <doriank@fsmpi.rwth-aachen.de>
Date: Tue, 2 Jul 2024 17:36:00 +0200
Subject: [PATCH] Add commit tag to ci

---
 .gitlab-ci.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 884269d..1099e28 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: frontend
         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