Skip to content

Commit

Permalink
feat: add MinIO service to GitHub Actions and update Docker Compose t…
Browse files Browse the repository at this point in the history
…o use latest image
  • Loading branch information
PonponJuice committed Jan 8, 2025
1 parent d77ee56 commit 6d7ed59
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ jobs:
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: run minio
run: |
docker run -d -p 9000:9000 --name minio \
-e "MINIO_ACCESS_KEY=access_key" \
-e "MINIO_SECRET_KEY=secret_key" \
-v /tmp/data:/data \
-v /tmp/config:/root/.minio \
minio/minio server /data
- name: Build test
run: cargo build --release --verbose
- name: Run test
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
- mysql:/var/lib/mysql

minio:
image: minio/minio:RELEASE.2024-08-17T01-24-54Z
image: minio/minio:latest
environment:
MINIO_ACCESS_KEY: ${OBJECT_STORAGE_ACCESS_KEY}
MINIO_SECRET_KEY: ${OBJECT_STORAGE_SECRET_KEY}
Expand Down

0 comments on commit 6d7ed59

Please sign in to comment.