Update Docker Compose configuration to set a default volume path for the database and modify the deployment workflow to conditionally create the database directory based on the provided environment variable.
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 3m4s

This commit is contained in:
Julien Froidefond
2026-02-20 13:42:28 +01:00
parent 04d5a9b9c2
commit 521975db31
2 changed files with 5 additions and 2 deletions

View File

@@ -19,5 +19,5 @@ jobs:
AUTH_SECRET: ${{ secrets.AUTH_SECRET }}
DB_VOLUME_PATH: ${{ variables.DB_VOLUME_PATH }}
run: |
mkdir -p "${DB_VOLUME_PATH:-./data/db}"
if [ -n "${DB_VOLUME_PATH}" ]; then mkdir -p "$DB_VOLUME_PATH"; fi
docker compose up -d --build