From cfba72548201fe0b6d973225f1ca7c2fbd021712 Mon Sep 17 00:00:00 2001
From: Tom Teichler <tom.teichler@teckids.org>
Date: Tue, 9 Apr 2024 23:51:56 +0200
Subject: [PATCH] New build step

---
 .gitlab-ci.yml | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 41e265ab..3b0f558a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -16,7 +16,7 @@ zola check:
   script:
   - zola check
 
-docker build:
+.build:
   stage: build
   interruptible: true
   image:
@@ -35,6 +35,19 @@ docker build:
     paths:
       - DIGESTFILE
 
+
+build production:
+  extends: .build
+  only:
+    - master
+
+build review:
+  extends: .build
+  variables:
+    BASE_URL: https://$CI_COMMIT_REF_SLUG.review.teckids.org
+  only:
+    - merge_requests
+
 .deploy:
   stage: deploy
   image: line/kubectl-kustomize:latest
-- 
GitLab