feature/ai-search #2

Open
mmintel wants to merge 153 commits from feature/ai-search into main
Showing only changes of commit 0bd55c1dee - Show all commits

View File

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