Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically run migrations before automatically deploying #52

Merged
merged 11 commits into from
Nov 19, 2024

Conversation

pcraig3
Copy link
Collaborator

@pcraig3 pcraig3 commented Nov 18, 2024

Summary

We want to automatically run migrations when we deploy the app.

This PR creates a new migrations action that automatically runs all migrations in the app.

It also has a new main.yml file which manages when the jobs actually are run.

Previously:

  • ci: run test quite. Would run on all PRs and on merges to main.
  • deploy: deploy new container. Would run on all merges to main.

Now:

  • ci: run test quite. Would run on all PRs and on merges to main.
  • migrate: migrate DB. Runs on merges to main, only if ci has succeeded.
  • deploy: deploy new container. Runs on merges to main only if migrate has succeeded.

@pcraig3 pcraig3 force-pushed the auto-migrate-and-auto-deploy branch 4 times, most recently from 39a5312 to fc17130 Compare November 19, 2024 00:53
@pcraig3 pcraig3 force-pushed the auto-migrate-and-auto-deploy branch from 5f32e38 to a0ddae8 Compare November 19, 2024 01:26
@pcraig3 pcraig3 changed the title [WIP] Automatically run migrations when automatically deploying Automatically run migrations before automatically deploying Nov 19, 2024
@pcraig3 pcraig3 merged commit 0495f2c into main Nov 19, 2024
4 checks passed
@pcraig3 pcraig3 deleted the auto-migrate-and-auto-deploy branch November 19, 2024 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant