Skip to content

Commit

Permalink
fix: fix migration application during deployment
Browse files Browse the repository at this point in the history
We now apply migrations before starting the new version.
Most of the time it's not an issue, and it prevents downtimes.
  • Loading branch information
raphael0202 committed Oct 26, 2023
1 parent 0a2171d commit 27ea630
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/container-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,9 @@ jobs:
script_stop: false
script: |
cd ${{ matrix.env}}
# stop all containers before applying DB migrations
make down
# apply all unapplied DB migrations
# Apply migrations
make migrate-db
# Start new version
make up
- name: Check services are up
Expand Down

0 comments on commit 27ea630

Please sign in to comment.