Created
August 16, 2020 02:03
-
-
Save bmwitcher/32b97a2226440049039a4ab547b4acc3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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