Skip to content

Commit

Permalink
ci(deploy): run migrations prior to backend smoke test
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Oct 23, 2023
1 parent c0b14f9 commit 103eb7e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,13 @@ jobs:
- name: Backend smoke test
run: |
docker compose up -d api \
--wait --wait-timeout 60
--exit-code-from api
# Migrate db first, so api works
docker compose up -d migrations
# Run without migrations (give exit code 0)
docker compose up -d \
--no-deps --wait --wait-timeout 60 \
central-db central central-proxy s3 api
smoke-test-frontend:
runs-on: ubuntu-latest
Expand Down
2 changes: 0 additions & 2 deletions src/backend/migrate-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -206,5 +206,3 @@ pretty_echo "### Script End ###"
####################
### Script END ###
####################

exec "$@"

0 comments on commit 103eb7e

Please sign in to comment.