fix(ci): Fix YAML syntax error in deploy workflow heredoc

Changed heredoc delimiter from EOF to DEPLOY_SCRIPT to avoid YAML parsing
issues. Also explicitly pass environment variables to SSH remote command.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
torlando-tech 2025-11-07 22:33:54 -05:00
commit c5e243a452

View file

@ -95,7 +95,8 @@ jobs:
echo ">>> Deploying to $HOST..."
# Deploy with error handling
if ssh -o StrictHostKeyChecking=no -o ConnectTimeout=10 "$PI_USER@$HOST" bash <<EOF
if ssh -o StrictHostKeyChecking=no -o ConnectTimeout=10 "$PI_USER@$HOST" \
PI_REPO_PATH="$PI_REPO_PATH" BRANCH_NAME="$BRANCH_NAME" bash <<'DEPLOY_SCRIPT'
set -e # Exit on any error
echo " [1/7] Navigating to repository..."
@ -138,7 +139,7 @@ jobs:
fi
echo " ✓ Deployment successful!"
EOF
DEPLOY_SCRIPT
then
echo "✓ Successfully deployed to $HOST"
SUCCESSFUL_HOSTS+=("$HOST")