ci: Update Gitea deploy workflow.
Some checks failed
Build & Deploy KLZ Cables / 🔍 Prepare Environment (push) Successful in 21s
Build & Deploy KLZ Cables / 🧪 Quality Assurance (push) Successful in 1m33s
Build & Deploy KLZ Cables / 🚀 Deploy (push) Has been cancelled
Build & Deploy KLZ Cables / ⚡ PageSpeed (push) Has been cancelled
Build & Deploy KLZ Cables / 🔔 Notifications (push) Has been cancelled
Build & Deploy KLZ Cables / 🏗️ Build & Push (push) Has been cancelled
Some checks failed
Build & Deploy KLZ Cables / 🔍 Prepare Environment (push) Successful in 21s
Build & Deploy KLZ Cables / 🧪 Quality Assurance (push) Successful in 1m33s
Build & Deploy KLZ Cables / 🚀 Deploy (push) Has been cancelled
Build & Deploy KLZ Cables / ⚡ PageSpeed (push) Has been cancelled
Build & Deploy KLZ Cables / 🔔 Notifications (push) Has been cancelled
Build & Deploy KLZ Cables / 🏗️ Build & Push (push) Has been cancelled
This commit is contained in:
@@ -53,17 +53,23 @@ jobs:
|
|||||||
COMMIT_MSG=$(git log -1 --pretty=%s || echo "No commit message available")
|
COMMIT_MSG=$(git log -1 --pretty=%s || echo "No commit message available")
|
||||||
|
|
||||||
if [[ "${{ github.ref_type }}" == "branch" && "$TAG" == "main" ]]; then
|
if [[ "${{ github.ref_type }}" == "branch" && "$TAG" == "main" ]]; then
|
||||||
TARGET="testing"
|
if [[ "$COMMIT_MSG" =~ ^chore: ]]; then
|
||||||
IMAGE_TAG="main-${SHORT_SHA}"
|
TARGET="skip"
|
||||||
ENV_FILE=".env.testing"
|
GOTIFY_TITLE="ℹ️ Skip Deploy (Chore)"
|
||||||
TRAEFIK_HOST='`testing.klz-cables.com`'
|
GOTIFY_PRIORITY=2
|
||||||
NEXT_PUBLIC_BASE_URL="https://testing.klz-cables.com"
|
else
|
||||||
DIRECTUS_URL="https://cms.testing.klz-cables.com"
|
TARGET="testing"
|
||||||
DIRECTUS_HOST='`cms.testing.klz-cables.com`'
|
IMAGE_TAG="main-${SHORT_SHA}"
|
||||||
PROJECT_NAME="klz-cables-testing"
|
ENV_FILE=".env.testing"
|
||||||
IS_PROD="false"
|
TRAEFIK_HOST='`testing.klz-cables.com`'
|
||||||
GOTIFY_TITLE="🧪 Testing-Deploy"
|
NEXT_PUBLIC_BASE_URL="https://testing.klz-cables.com"
|
||||||
GOTIFY_PRIORITY=4
|
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
|
elif [[ "${{ github.ref_type }}" == "tag" ]]; then
|
||||||
if [[ "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
if [[ "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
||||||
TARGET="production"
|
TARGET="production"
|
||||||
|
|||||||
Reference in New Issue
Block a user