From 86bb98fc827eb20d30e49c60514285f8550e4ba0 Mon Sep 17 00:00:00 2001 From: hotio Date: Mon, 7 Aug 2023 09:28:18 +0000 Subject: [PATCH] Updated some files [skip ci] --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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