From d120da1a23f9857cbdf0709cad7010ce8eba3d91 Mon Sep 17 00:00:00 2001 From: soulgalore Date: Sat, 28 Dec 2024 17:35:57 +0100 Subject: [PATCH] loop --- .github/workflows/upload.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/upload.yml b/.github/workflows/upload.yml index d274497ce2..5b8443218e 100644 --- a/.github/workflows/upload.yml +++ b/.github/workflows/upload.yml @@ -40,6 +40,10 @@ jobs: docker run -d -p 9000:9000 -p 9001:9001 -e MINIO_ROOT_USER=user -e MINIO_ROOT_PASSWORD=password minio/minio:RELEASE.2024-05-10T01-41-38Z server /data --console-address ":9001" docker run --rm --network host minio/mc:RELEASE.2024-10-08T09-37-26Z alias set myminio http://localhost:9000 user password docker run --rm --network host minio/mc:RELEASE.2024-10-08T09-37-26Z mb --region=motown myminio/mybucket || echo "Bucket already exists" + until docker run --rm --network host minio/mc:RELEASE.2024-10-08T09-37-26Z ls myminio/mybucket > /dev/null 2>&1; do + echo "Waiting for bucket to be available..."; + sleep 3; + done docker run --rm --network host minio/mc:RELEASE.2024-10-08T09-37-26Z anonymous set public myminio/mybucket docker run --rm --network host minio/mc:RELEASE.2024-10-08T09-37-26Z ls myminio/mybucket - name: Install local HTTP server