From d6eb1c0e7fe99bc7006a396c8eea0228c4723b31 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Thu, 18 Jun 2026 13:35:10 +0200 Subject: [PATCH] fix(ci): robust branch and tag detection to prevent skip --- .gitea/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 483c2e6a4..1300f5a6c 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -89,12 +89,12 @@ jobs: DOMAIN="e-tib.com" PRJ="etib" - if [[ "${{ github.ref_type }}" == "branch" && "$REF" == "main" ]]; then + if [[ "$REF" == "main" ]]; then TARGET="staging" IMAGE_TAG="main-${SHORT_SHA}" ENV_FILE=".env.staging" TRAEFIK_HOST="staging.${DOMAIN}" - elif [[ "${{ github.ref_type }}" == "tag" ]]; then + elif [[ "${{ github.ref }}" == refs/tags/* ]]; then if [[ "$REF" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then TARGET="production" IMAGE_TAG="$REF"