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"