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

Move migrations from skaffold to k8s for stag/prod #7

Merged
merged 1 commit into from
May 2, 2023

Conversation

omar-selo
Copy link
Collaborator

As part of setting up the code to work on staging and production. Handling of db migrations needs to be moved from Skaffold to just plain k8s (since Skaffold is only for development). This PR moves db migrations into a k8s job. Additionally, it adds init containers that will wait for the database to be ready before running migrations, then for the migrations to be ready before running the api.

@omar-selo omar-selo requested a review from nadzyah May 1, 2023 10:26
Copy link
Collaborator

@nadzyah nadzyah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is pretty straightforward, so I haven't found anything wrong with it. Great job, lgtm!

@omar-selo omar-selo merged commit 964b035 into main May 2, 2023
@omar-selo omar-selo deleted the fix-migrations-for-staging branch May 2, 2023 10:17
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.

2 participants