ci: add automatic prisma db push to deploy pipeline
Some checks failed
Deploy to Production / Build and Deploy (push) Has been cancelled

Run database migration after build and before container startup
so schema changes are always applied before the app goes live.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-04-26 10:53:31 +02:00
parent 73de1cd26d
commit 88d7bc8b24

View File

@@ -126,6 +126,9 @@ jobs:
echo "=== Building ==="
docker compose build memento-note
echo "=== Database migration ==="
docker compose run --rm memento-note npx prisma db push --skip-generate
echo "=== Starting ==="
docker compose up -d --remove-orphans
docker compose ps