Skip to content

Commit c919c26

Browse files
committed
chore(deploy): remove health checker
1 parent 865ec82 commit c919c26

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

.github/workflows/cd.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -70,22 +70,3 @@ jobs:
7070
ssh -i ~/.ssh/ec2.pem \
7171
${{ secrets.EC2_USER }}@${{ secrets.EC2_HOST }} \
7272
"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

Comments
 (0)