From f902fb83c2f4db3b9d4d9a63b110ed08028bbcb9 Mon Sep 17 00:00:00 2001 From: Jonas Plum Date: Tue, 4 Oct 2022 19:02:16 +0200 Subject: [PATCH] Make curl retry more robust (#485) * Make curl retry more robust * Update ubuntu runner --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 90f6ebb..07ba066 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,7 +50,7 @@ jobs: matrix: test: [ tickets, templates, playbooks ] auth: [ authelia ] - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 @@ -62,13 +62,13 @@ jobs: yarn install yarn serve & working-directory: ui - - run: curl --head -X GET --retry 60 --retry-connrefused --retry-delay 10 http://localhost:8080 + - run: curl --head -X GET --retry 60 --retry-all-errors --retry-delay 10 http://localhost:8080 # run containers - run: sed -i 's/host.docker.internal/172.17.0.1/g' dev/nginx.conf - run: docker compose up --quiet-pull --detach working-directory: dev if: matrix.auth == 'authelia' - - run: curl --head -X GET --retry 60 --retry-connrefused --retry-delay 10 http://localhost:8082 + - run: curl --head -X GET --retry 60 --retry-all-errors --retry-delay 10 http://localhost:8082 if: matrix.auth == 'authelia' # run catalyst - run: | @@ -78,7 +78,7 @@ jobs: - run: bash start_dev.sh & working-directory: dev if: matrix.auth == 'authelia' - - run: curl --head -X GET --retry 60 --retry-connrefused --retry-delay 10 http://localhost:8000 + - run: curl --head -X GET --retry 60 --retry-all-errors --retry-delay 10 http://localhost:8000 # run cypress - uses: cypress-io/github-action@v4 env: