From 337cff3e14558aca92939669bf9d65d7a8450214 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:56:00 +0200
Subject: [PATCH] Remove branch condition. Match protected tag

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 981f456..690b883 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,7 +1,8 @@
 trigger-production:
     stage: deploy
     rules:
-        - if: $CI_COMMIT_BRANCH == "live_production" && $CI_COMMIT_TAG != null
+          # Tag is protected. Match only v.* Tags
+        - if: $CI_COMMIT_TAG =~ /v.*/
     variables:
         BUILD_TYPE: backend_api
         UPSTREAM_COMMIT_SHA: $CI_COMMIT_SHA
-- 
GitLab