docs added fixes #1 #10
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
name: Demo for Terragrunt | |
on: | |
- push | |
- pull_request | |
env: | |
tf_version: 'latest' | |
tg_version: 'latest' | |
tf_working_dir: 'nonlive' | |
jobs: | |
build_demo_project: | |
runs-on: ubuntu-latest | |
name: Terragrunt Demo Project | |
steps: | |
- name: Install tfenv | |
run: git clone https://github.com/tfutils/tfenv.git ~/.tfenv && sudo rm /usr/local/bin/terraform && sudo ln -s ~/.tfenv/bin/* /usr/local/bin | |
- name: Install tgenv | |
run: git clone https://github.com/cunymatthieu/tgenv.git ~/.tgenv && sudo ln -s ~/.tgenv/bin/* /usr/local/bin | |
- name: 'Checkout' | |
uses: actions/checkout@master | |
- name: Install required Terraform & Terragrunt versions | |
run: tfenv install && tgenv install | |
#### Terraforming | |
- name: 'Terragrunt Apply nonlive' | |
run: cd environments/nonlive && terragrunt init && terragrunt apply --auto-approve --input=false | |
- name: 'Terragrunt Apply live' | |
run: cd environments/live && terragrunt init && terragrunt apply --auto-approve --input=false | |