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

Automate blue/green updates for the browser/API #1645

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

sjahl
Copy link
Contributor

@sjahl sjahl commented Oct 25, 2024

Still testing/in-progress, but I needed to push this somewhere to start triggering builds.

The way I intend for this to work going forward:

  1. Blue and Green deployment definitions live over in https://github.com/broadinstitute/gnomad-deployments
  2. PR to change the browser/API is approved and merged in this repo
  3. API/Browser Docker build starts
  4. On build success, update either blue or green kustomize overlays (whichever is currently not active)
  5. push that change to gnomad-deployments main

After verifying that the changes look good, developer runs a blue/green swap cloudbuild action to redirect the prod traffic. Rollback can be done by re-running that job.

@sjahl sjahl self-assigned this Oct 25, 2024
@sjahl sjahl force-pushed the bluegreen-browser-auto branch 2 times, most recently from 6f3a4f1 to c7b645b Compare November 1, 2024 20:36
@sjahl sjahl force-pushed the bluegreen-browser-auto branch 2 times, most recently from 8dd0035 to 73bed01 Compare November 26, 2024 19:05
@sjahl sjahl force-pushed the bluegreen-browser-auto branch from 12673e2 to 83b5fa4 Compare December 6, 2024 15:34
@sjahl sjahl force-pushed the bluegreen-browser-auto branch from fcb271b to 9060632 Compare December 6, 2024 20:31
@sjahl sjahl marked this pull request as ready for review December 10, 2024 18:40
@sjahl
Copy link
Contributor Author

sjahl commented Dec 18, 2024

Just noting what the ship plan here looks like to get the automation pipeline started:

Once these steps are complete, the desired end state is that pushing to the main branch of gnomad-browser triggers a docker build, and automatically rolls out the inactive blue/green with the new image. Then promoting that can be done with the manual blue/green flip cloudbuild job.

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