Skip to content

Commit 48aaedd

Browse files
committed
πŸ”§ Fix GitHub Actions workflow syntax error
- Fixed heredoc syntax error in health check step - Corrected EOF delimiter and indentation - This should resolve the shell script syntax error
1 parent f2c38d2 commit 48aaedd

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

β€Ž.github/workflows/deploy-server.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -102,16 +102,16 @@ jobs:
102102
103103
# Get container logs via SSH if health check fails
104104
ssh -o StrictHostKeyChecking=no -i /tmp/ec2_key ubuntu@${{ secrets.EC2_HOST }} << 'EOF'
105-
echo "πŸ“‹ Container status:"
106-
sudo docker ps -a --filter name=lab1-todoapp-server
107-
108-
echo "πŸ“‹ Container logs (last 50 lines):"
109-
sudo docker logs --tail 50 lab1-todoapp-server
110-
111-
echo "πŸ“‹ System resources:"
112-
free -h
113-
df -h
114-
EOF
105+
echo "πŸ“‹ Container status:"
106+
sudo docker ps -a --filter name=lab1-todoapp-server
107+
108+
echo "πŸ“‹ Container logs (last 50 lines):"
109+
sudo docker logs --tail 50 lab1-todoapp-server
110+
111+
echo "πŸ“‹ System resources:"
112+
free -h
113+
df -h
114+
EOF
115115
116116
exit 1
117117
fi

0 commit comments

Comments
Β (0)