Skip to content

Commit

Permalink
Redirect is also representative of healthy
Browse files Browse the repository at this point in the history
  • Loading branch information
alishaz-polymath authored Sep 28, 2023
1 parent bd8a941 commit ff0db3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docker-build-push-dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ 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)
if [[ "$response" == "200" ]]; then
if [[ "$response" == "200" ]] || [[ "$response" == "307" ]]; then
echo "Server is healthy"
# Now, shutdown the server
kill $server_pid
Expand Down

0 comments on commit ff0db3a

Please sign in to comment.