fix(deploy): revert to bash variables for SITE_DIR calculation to prevent gitea actions parser crash
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 5s
Build & Deploy / 🧪 QA (push) Successful in 1m7s
Build & Deploy / 🏗️ Build (push) Failing after 16s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 1s

This commit is contained in:
2026-03-04 12:33:08 +01:00
parent bb7c50c780
commit 0bd55c1dee

View File

@@ -402,15 +402,18 @@ jobs:
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan -H alpha.mintel.me >> ~/.ssh/known_hosts 2>/dev/null
# Determine deployment paths
echo "Preparing deployment for $TARGET..."
# Transfer and Restart
if [[ "${{ env.TARGET }}" == "production" ]]; then
if [[ "$TARGET" == "production" ]]; then
SITE_DIR="/home/deploy/sites/klz-cables.com"
elif [[ "${{ env.TARGET }}" == "testing" ]]; then
elif [[ "$TARGET" == "testing" ]]; then
SITE_DIR="/home/deploy/sites/testing.klz-cables.com"
elif [[ "${{ env.TARGET }}" == "staging" ]]; then
elif [[ "$TARGET" == "staging" ]]; then
SITE_DIR="/home/deploy/sites/staging.klz-cables.com"
else
SITE_DIR="/home/deploy/sites/branch.klz-cables.com/${{ env.SLUG }}"
SITE_DIR="/home/deploy/sites/branch.klz-cables.com/$SLUG"
fi
ssh root@alpha.mintel.me "mkdir -p $SITE_DIR"