Skip to content

Deploying

ehanna4 edited this page Oct 26, 2020 · 11 revisions

Terra's deploys are handled by CircleCI.

Dev

Dev is deployed after every merge. Branches are deployed if they have an open PR.
These deploy processes are documented here, including requirements of passing tests.

Prod

Prod is deployed every weekday morning, by finding the artifact in Circle from the most recent Dev deploy.
This process is documented here.

Preventing scheduled deploys (prod)

  1. Go to the environment variables page in Circle for the prod deploy repo and create a variable called PREVENT_DEPLOY with the value true. As long as this variable exists with that value, scheduled prod deploys will not happen.
  2. Create a ticket on the Terra-UI Sprint board titled "re-enable prod deploys" so that we are tracking that someone needs to turn prod back on by deleting the PREVENT_DEPLOY variable.

Manual deploys (prod)

  1. Try going to the circle page for the deploy repo, clicking the latest deploy job, and hitting "Rerun workflow" in the top right.
  2. If that doesn't work (Circle is down, etc), follow the deploy steps from the config files linked above:
    $ yarn install
    $ yarn build
    $ gcloud app deploy --project=bvdp-saturn-prod --promote --quiet
  3. If you don't have permission for either of these steps, find someone who does.
Clone this wiki locally