From 799eab63a967439cf5e57ffda713ff29b69ea2a3 Mon Sep 17 00:00:00 2001 From: Petu Eusebiu Date: Tue, 17 May 2022 19:50:27 +0300 Subject: [PATCH] clustering: Give time to minio container to come up Signed-off-by: Petu Eusebiu --- .github/workflows/cluster.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cluster.yaml b/.github/workflows/cluster.yaml index c4b89c53..42243ab5 100644 --- a/.github/workflows/cluster.yaml +++ b/.github/workflows/cluster.yaml @@ -65,9 +65,17 @@ jobs: -v /tmp/config:/root/.minio \ --health-cmd "curl http://localhost:9000/minio/health/live" \ minio/minio:edge-cicd server /data - - name: Install py minio run: pip3 install minio + + - name: Wait for minio to come up + run: | + curl --connect-timeout 5 \ + --max-time 10 \ + --retry 12 \ + --retry-max-time 120 \ + 'http://localhost:9000/minio/health/live' + - name: Create minio bucket run: | python3 - <<'EOF'