Skip to content

Automated deploys

Bria Morgan edited this page Aug 7, 2024 · 4 revisions

Terra's deploys are handled by CircleCI.

Pre-production

Every commit merged to the dev branched is deployed to the dev, and staging environments.

Opening or updating a PR deploys the PR branch to a preview environment.

CircleCI configuration: https://github.com/DataBiosphere/terra-ui/blob/dev/.circleci/config.yml

Production

Production deploys happen every weekday morning ~11am. The most recent commit on the dev branch that passed the build-deploy workflow in CircleCI is deployed to production.

CircleCI configuration: https://github.com/DataBiosphere/saturn-ui-prod-deploy/blob/dev/.circleci/config.yml

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.
Clone this wiki locally