ci(deploy): standardize docker compose env file usage across scripts
Test Suite / backend-pr-quick (push) Has been skipped
Test Suite / quick-import-pr-quick (push) Has been skipped
Test Suite / backend-full (push) Successful in 2m33s
Test Suite / flutter-quality (push) Failing after 1m16s

- Added --env-file .env to all docker compose commands for consistent environment variable loading
- Added MISTRAL_API_KEY validation in deploy.sh with fatal error if missing
- Added --force-recreate flag to recipe-api restarts in disable/enable receipt trace scripts
- Added .env file existence check in rebuild_flutter.sh
- Added API service recreation logic in deploy.sh when backend/importer services are updated
This commit is contained in:
Nils-Johan Gynther
2026-05-24 20:30:28 +02:00
parent 26c217e0eb
commit 7713eb2fa7
5 changed files with 16 additions and 6 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ trap 'echo "[reset][ERROR] Rad ${LINENO}: kommando misslyckades: ${BASH_COMMAND}
# Config
# ----------------------------------------
APP_DIR="${1:-/opt/containers/recipe-app}"
COMPOSE_FILES=(-f compose.yml -f compose.flutter.yml)
COMPOSE_FILES=(--env-file .env -f compose.yml -f compose.flutter.yml)
DB_CONTAINER="recipe-db"
IMPORTER_DIR="../microservice-importer"
SEED_FILE="db/seeds/seed_all.sql"