We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 865ec82 commit c919c26Copy full SHA for c919c26
.github/workflows/cd.yml
@@ -70,22 +70,3 @@ jobs:
70
ssh -i ~/.ssh/ec2.pem \
71
${{ secrets.EC2_USER }}@${{ secrets.EC2_HOST }} \
72
"sudo systemctl restart ${{ secrets.SERVICE_NAME }}"
73
-
74
- # ============================
75
- # HEALTH CHECK
76
77
- - name: Health check
78
- run: |
79
- echo "Waiting application startup..."
80
81
- for i in {1..20}; do
82
- echo "Health check attempt $i"
83
- if curl -f http://${{ secrets.EC2_HOST }}:8080/health; then
84
- echo "Application is UP"
85
- exit 0
86
- fi
87
- sleep 5
88
- done
89
90
- echo "Application did not become healthy"
91
- exit 1
0 commit comments