Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Shared Deployment Workflow

Andrew Fink edited this page Apr 3, 2018 · 2 revisions

Dependencies

  • Docker
  • Docker Compose

The versions of the above software should support docker-compose files v2.1+

Deploying changes

Ensure you've checked out the commit that you want to deploy, and you've made any necessary configuration changes to the appropriate terraform.tfvars file hosted on S3.

Then, run:

export CC_ENVIRONMENT="staging|production"
export CC_SETTINGS_BUCKET="${CC_ENVIRONMENT}-us-east-1-climate-config"

Once your environment is ready, run:

docker-compose -f docker-compose.yml run --rm terraform ./scripts/infra plan

Review the changes described by terraform plan, then commit them with:

docker-compose -f docker-compose.yml run --rm terraform ./scripts/infra apply
Clone this wiki locally