From 823297141953e4e4338991392d620fa1346ac037 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Sun, 1 Feb 2026 17:37:38 +0100 Subject: [PATCH] ci: Update Gitea deploy workflow. --- .gitea/workflows/deploy.yml | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 215cc205..a49e0099 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -53,17 +53,23 @@ jobs: COMMIT_MSG=$(git log -1 --pretty=%s || echo "No commit message available") if [[ "${{ github.ref_type }}" == "branch" && "$TAG" == "main" ]]; then - TARGET="testing" - IMAGE_TAG="main-${SHORT_SHA}" - ENV_FILE=".env.testing" - TRAEFIK_HOST='`testing.klz-cables.com`' - NEXT_PUBLIC_BASE_URL="https://testing.klz-cables.com" - DIRECTUS_URL="https://cms.testing.klz-cables.com" - DIRECTUS_HOST='`cms.testing.klz-cables.com`' - PROJECT_NAME="klz-cables-testing" - IS_PROD="false" - GOTIFY_TITLE="🧪 Testing-Deploy" - GOTIFY_PRIORITY=4 + if [[ "$COMMIT_MSG" =~ ^chore: ]]; then + TARGET="skip" + GOTIFY_TITLE="ℹ️ Skip Deploy (Chore)" + GOTIFY_PRIORITY=2 + else + TARGET="testing" + IMAGE_TAG="main-${SHORT_SHA}" + ENV_FILE=".env.testing" + TRAEFIK_HOST='`testing.klz-cables.com`' + NEXT_PUBLIC_BASE_URL="https://testing.klz-cables.com" + DIRECTUS_URL="https://cms.testing.klz-cables.com" + DIRECTUS_HOST='`cms.testing.klz-cables.com`' + PROJECT_NAME="klz-cables-testing" + IS_PROD="false" + GOTIFY_TITLE="🧪 Testing-Deploy" + GOTIFY_PRIORITY=4 + fi elif [[ "${{ github.ref_type }}" == "tag" ]]; then if [[ "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then TARGET="production"