From ff596f2c02a855f9bdb836b0f15fa8f11a8d904e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= Date: Mon, 29 Jan 2024 11:35:40 -0500 Subject: [PATCH] github: Switch to minio deb and pin working version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber --- .github/workflows/tests.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 04cf53c65..4d9977ce0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -237,11 +237,12 @@ jobs: # reclaim some space sudo apt-get clean - mkdir -p "$(go env GOPATH)/bin" - curl -sSfL https://dl.min.io/server/minio/release/linux-amd64/minio --output "$(go env GOPATH)/bin/minio" - chmod +x "$(go env GOPATH)/bin/minio" + # Download minio. + curl -sSfL https://dl.min.io/server/minio/release/linux-amd64/archive/minio_20240116160738.0.0_amd64.deb --output /tmp/minio.deb + sudo apt-get install /tmp/minio.deb --yes # Download latest release of openfga server. + mkdir -p "$(go env GOPATH)/bin/" curl -sSfL https://api.github.com/repos/openfga/openfga/releases/latest | jq -r '.assets | .[] | .browser_download_url | select(. | test("_linux_amd64.tar.gz$"))' | xargs -I {} curl -sSfL {} -o openfga.tar.gz tar -xzf openfga.tar.gz -C "$(go env GOPATH)/bin/"