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:
parent
0b10a08b93
commit
c5e243a452
1 changed files with 3 additions and 2 deletions
5
.github/workflows/deploy.yml
vendored
5
.github/workflows/deploy.yml
vendored
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue