Skip to content

Instantly share code, notes, and snippets.

@bmwitcher
Created August 16, 2020 02:03
Show Gist options
  • Save bmwitcher/32b97a2226440049039a4ab547b4acc3 to your computer and use it in GitHub Desktop.
Save bmwitcher/32b97a2226440049039a4ab547b4acc3 to your computer and use it in GitHub Desktop.
idist: xenial
language: bash
before_install: # Download and install Terraform for us on the container (v0.12.25)
- wget https://releases.hashicorp.com/terraform/0.12.25/terraform_0.12.25_linux_amd64.zip
- unzip terraform_0.12.25_linux_amd64.zip
- sudo mv terraform /usr/local/bin/
- rm terraform_0.12.25_linux_amd64.zip
jobs:
include:
- stage: terraform plan # When a Pull Request is created - Validate our plan
if: type IN (pull_request)
script:
- terraform init
- terraform plan -out build.plan
- terraform apply build.plan
# Filter to only run this pipeline when it involves actions against the master branch
branches:
only:
- master
~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment