Skip to content

Commit

Permalink
Updated some files [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
hotio committed Aug 7, 2023
1 parent 37f6bf8 commit e9ae2ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e9ae2ca

Please sign in to comment.