From 35b925b7ec7463817259e25b5e4e26aeca589148 Mon Sep 17 00:00:00 2001
From: Louis <contact@louiscap.co>
Date: Fri, 31 Jan 2025 19:43:24 +0000
Subject: [PATCH] Enable indev tag for trunk branch

---
 .gitlab-ci.yml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 750a3d7..d9348f6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,13 +9,13 @@ build:
     - |
       if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then
         tag=""
-        echo "Running on default branch '$CI_DEFAULT_BRANCH': tag = 'latest'"
+        echo "Running on default branch '$CI_DEFAULT_BRANCH': tag = 'indev'"
       else
         tag=":$CI_COMMIT_REF_SLUG"
         echo "Running on branch '$CI_COMMIT_BRANCH': tag = $tag"
       fi
     - docker build --pull -f Dockerfile -t "$CI_REGISTRY_IMAGE${tag}" .
     - docker push "$CI_REGISTRY_IMAGE${tag}"
-  rules:
-    if: $CI_COMMIT_TAG
-        when: always
\ No newline at end of file
+  only:
+    - tags
+    - trunk
\ No newline at end of file
-- 
GitLab