Skip to content

Commit

Permalink
[BE] 무중단 배포에서 health-check 부분을 추가한다. (#850)
Browse files Browse the repository at this point in the history
  • Loading branch information
shin-jisong authored Oct 21, 2024
1 parent e6a9d64 commit 3004105
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/backend-prod-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ jobs:
- name: Health check
run: |
for i in {1..2}; do
if curl -s http://localhost:8080/health-check | grep "200"; then
RESPONSE=$(curl -s -w "%{http_code}" -o /dev/null http://localhost:8080/health-check)
echo "Response: $RESPONSE"
if [ "$RESPONSE" -eq 200 ]; then
echo "Health check passed"
exit 0
fi
Expand Down

0 comments on commit 3004105

Please sign in to comment.