ci: add automatic prisma db push to deploy pipeline
Some checks failed
Deploy to Production / Build and Deploy (push) Has been cancelled
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user