Skip to content

Commit 7b44a8c

Browse files
committed
Update to use minio/minio docker image
1 parent c01db89 commit 7b44a8c

File tree

1 file changed

+23
-10
lines changed

1 file changed

+23
-10
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,6 @@ jobs:
1818
- 5432:5432
1919
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
2020

21-
minio:
22-
image: bitnami/minio:latest
23-
env:
24-
MINIO_ROOT_USER: root
25-
MINIO_ROOT_PASSWORD: tembatemba
26-
MINIO_DEFAULT_BUCKETS: temba-archives
27-
ports:
28-
- 9000:9000
29-
options: --health-cmd "mc ready local" --health-interval 10s --health-timeout 5s --health-retries 5
30-
3121
steps:
3222
- name: Checkout code
3323
uses: actions/checkout@v4
@@ -37,6 +27,29 @@ jobs:
3727
with:
3828
go-version: ${{ env.go-version }}
3929

30+
- name: Run MinIO docker container
31+
run: |
32+
docker run -d --rm \
33+
-p 9000:9000 \
34+
-p 9001:9001 \
35+
--env MINIO_ROOT_USER=root \
36+
--env MINIO_ROOT_PASSWORD=tembatemba \
37+
--health-cmd "curl -f http://127.0.0.1:9000/minio/health/live" \
38+
--health-interval 10s \
39+
--health-timeout 5s \
40+
--health-retries 5 \
41+
minio/minio:RELEASE.2025-07-23T15-54-02Z minio server /data --console-address ":9001"
42+
- name: Install MinIO client
43+
run: |
44+
# Download MinIO client and its checksum
45+
sudo curl -O https://dl.min.io/client/mc/release/linux-amd64/archive/mc.RELEASE.2025-08-13T08-35-41Z
46+
sudo curl -O https://dl.min.io/client/mc/release/linux-amd64/archive/mc.RELEASE.2025-08-13T08-35-41Z.sha256sum
47+
sha256sum -c mc.RELEASE.2025-08-13T08-35-41Z.sha256sum
48+
sudo chmod +x mc.RELEASE.2025-08-13T08-35-41Z
49+
sudo mv mc.RELEASE.2025-08-13T08-35-41Z /usr/local/bin/mc
50+
mc alias set local http://127.0.0.1:9000 root tembatemba
51+
mc ls local/temba-archives || mc mb local/temba-archives
52+
4053
- name: Run tests
4154
run: go test -p=1 -coverprofile=coverage.text -covermode=atomic ./...
4255

0 commit comments

Comments
 (0)