Skip to contentSkip to conversation

ci: Fix detection of tags

PATCH New Jan Kiszka 1 participant 1 message Apr 16, 2025

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 ci: Fix detection of tags

From: Jan Kiszka <[email protected]>

Likely due to some changes in gitlab, we started to build taged releases again, instead of just the corresponding commits. Fix that by adjusting and simplifying the logic.

---
 .gitlab-ci.yml | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
.gitlab-ci.yml +1 -3
index 0bea8fc00b..82dcb437de 100644
@@ -36,9 +36,7 @@ variables:
   tags:
     - build
   rules:
-    - if: $CI_COMMIT_BRANCH != "master"
-    - if: $CI_COMMIT_TAG
-      when: never
+    - if: '$CI_COMMIT_BRANCH != "master" && $CI_COMMIT_TAG == null'
   before_script:
     - apt update
     - ARCH_PACKAGES="PACKAGES_${ARCH}"
Signature · 1 line
2.43.0