Skip to content

Commit

Permalink
workflow added
Browse files Browse the repository at this point in the history
  • Loading branch information
katzefudder committed Jan 3, 2024
1 parent 208ed5d commit cf876d8
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/terragrunt_demo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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: cd environments && tfenv install && tgenv install
#### Terraforming
- name: 'Terragrunt Apply _nonlive'
run: cd _nonlive && terragrunt init && terragrunt apply --auto-approve --input=false
- name: 'Terragrunt Apply _live'
run: cd _nonlive && terragrunt init && terragrunt apply --auto-approve --input=false

0 comments on commit cf876d8

Please sign in to comment.