Skip to content

Commit

Permalink
debug response
Browse files Browse the repository at this point in the history
  • Loading branch information
alishaz-polymath authored Sep 28, 2023
1 parent ff0db3a commit 89bd10b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/docker-build-push-dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ jobs:
for i in {1..1200}; do
echo "Checking server health ($i/1200)..."
response=$(curl --silent --fail --write-out "%{http_code}" -v ${{ env.NEXT_PUBLIC_WEBAPP_URL }}/auth/login)
response=$(curl -o /dev/null -s -w "%{http_code}" ${{ env.NEXT_PUBLIC_WEBAPP_URL }}/auth/login)
echo "HTTP Status Code: $response"
if [[ "$response" == "200" ]] || [[ "$response" == "307" ]]; then
echo "Server is healthy"
# Now, shutdown the server
Expand Down

0 comments on commit 89bd10b

Please sign in to comment.