From e466f0c72ee1266f20a1679d58fb58eafefba80f Mon Sep 17 00:00:00 2001 From: Sarah Chen Date: Tue, 24 Sep 2024 15:27:46 -0400 Subject: [PATCH] Add curl retry --- .github/workflows/vaccine.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/vaccine.yml b/.github/workflows/vaccine.yml index 69b6fe2..b6cf39d 100644 --- a/.github/workflows/vaccine.yml +++ b/.github/workflows/vaccine.yml @@ -60,14 +60,14 @@ jobs: - run: bundle install # Prepare mock server 'catadog', https://github.com/DataDog/catadog - run: mkdir $GITHUB_WORKSPACE/records - # - run: | - # docker run -d \ - # --name catadog \ - # -v $GITHUB_WORKSPACE/records:/records \ - # -p 8128:8128 \ - # ghcr.io/datadog/catadog:latest \ - # "-h 0.0.0.0 --mock :Sink --no-forward --record /records" - # - run: curl -I http://localhost:8128/catadog + - run: | + docker run -d \ + --name catadog \ + -v $GITHUB_WORKSPACE/records:/records \ + -p 8128:8128 \ + ghcr.io/datadog/catadog:latest \ + "-h 0.0.0.0 --mock :Sink --no-forward --record /records" + - run: curl -I --retry 12 -f --retry-all-errors --retry-delay 5 -s http://localhost:8128/catadog # Prepare vaccine - name: Prepare vaccine volume