Skip to content

Commit

Permalink
(setup) update CI to add minio service & configure bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentporte committed May 23, 2024
1 parent 1df5767 commit 5fc5d8d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,19 @@ jobs:
POSTGRESQL_ADDON_DB: communaute
POSTGRESQL_ADDON_USER: postgres
POSTGRESQL_ADDON_PASSWORD: password
CELLAR_ADDON_KEY_ID: minioadmin
CELLAR_ADDON_KEY_SECRET: minioadmin
CELLAR_ADDON_PROTOCOL: http
CELLAR_ADDON_HOST: localhost:9000
services:
minio:
image: bitnami/minio
env:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
ports:
- 9000:9000

postgres:
# Docker Hub image
image: postgres:15-alpine
Expand Down Expand Up @@ -57,6 +69,8 @@ jobs:
python manage.py compress
- name: 🚧 Check pending migrations
run: python manage.py makemigrations --check --dry-run --noinput
- name: 🚧 Configure bucket
run: python manage.py configure_bucket
- name: 🤹‍ Django tests
run: pytest --numprocesses=logical --create-db
env:
Expand Down

0 comments on commit 5fc5d8d

Please sign in to comment.