From 701ec029aadc6aa91be5dfd13646baece2b95b47 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Simon=20K=C3=BCnzel?= <simonk@fsmpi.rwth-aachen.de>
Date: Tue, 1 Oct 2024 15:31:32 +0200
Subject: [PATCH] Update CI

---
 .gitlab-ci.yml | 19 ++++++++++++++++---
 1 file changed, 16 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8b8568e..02af95e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,11 +1,24 @@
+trigger-dev:
+    stage: build
+    variables:
+        GIT_REPO: git.fsmpi.rwth-aachen.de/videoag/dominic_render_video.git
+        UPSTREAM_COMMIT_SHA: $CI_COMMIT_SHA
+        TARGET_IMAGE_NAME: dominic_render_video
+    trigger:
+        project: videoag/development
+        strategy: depend
+
 trigger-production:
     stage: deploy
     rules:
-        - if: $CI_COMMIT_TAG
+          # Tag is protected. Match only v.* Tags
+        - if: $CI_COMMIT_TAG =~ /v.*/
     variables:
-        BUILD_TYPE: dominic_render_video
+        GIT_REPO: git.fsmpi.rwth-aachen.de/videoag/dominic_render_video.git
         UPSTREAM_COMMIT_SHA: $CI_COMMIT_SHA
         UPSTREAM_COMMIT_TAG: $CI_COMMIT_TAG
+        TARGET_IMAGE_NAME: dominic_render_video
     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
-        strategy: depend
\ No newline at end of file
+        strategy: depend
-- 
GitLab