Reduce number of attempts for server health check
This commit is contained in:
@@ -138,8 +138,8 @@ jobs:
|
|||||||
|
|
||||||
echo ${{ env.NEXT_PUBLIC_WEBAPP_URL }}/auth/login
|
echo ${{ env.NEXT_PUBLIC_WEBAPP_URL }}/auth/login
|
||||||
|
|
||||||
for i in {1..1200}; do
|
for i in {1..60}; do
|
||||||
echo "Checking server health ($i/1200)..."
|
echo "Checking server health ($i/60)..."
|
||||||
response=$(curl -o /dev/null -s -w "%{http_code}" ${{ 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"
|
echo "HTTP Status Code: $response"
|
||||||
if [[ "$response" == "200" ]] || [[ "$response" == "307" ]]; then
|
if [[ "$response" == "200" ]] || [[ "$response" == "307" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user