diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9ab680c96..6875861e4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -186,8 +186,8 @@ jobs: run: | test_url=${{ steps.prep_test.outputs.url }} docker run --network host -d --name service "docker.io/${{ steps.prep.outputs.tag }}" - currenttime=$(date +%s); maxtime=$((currenttime+120)); while (! curl -fsSL -b /dev/shm/cookie "${test_url}" > /dev/null) && [[ "$currenttime" -lt "$maxtime" ]]; do sleep 1; currenttime=$(date +%s); done - if curl -fsSL -b /dev/shm/cookie "${test_url}" > /dev/null; then + currenttime=$(date +%s); maxtime=$((currenttime+120)); while (! curl -fsSL -m 10 -b /dev/shm/cookie "${test_url}" > /dev/null) && [[ "$currenttime" -lt "$maxtime" ]]; do sleep 1; currenttime=$(date +%s); done + if curl -fsSL -m 10 -b /dev/shm/cookie "${test_url}" > /dev/null; then docker logs service exit 0 else