Skip to content

Commit

Permalink
Merge pull request #269 from signalwire/fix/terragrunt-root-repo
Browse files Browse the repository at this point in the history
Fix/terragrunt-root-repo
  • Loading branch information
lucasmellos authored Apr 23, 2024
2 parents 71aea78 + b3175c0 commit 8af8179
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/iac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
TG_VERSION:
required: false
type: string
default: '0.53.2'
default: '0.57.5'
TF_VERSION:
required: false
type: string
Expand Down Expand Up @@ -170,9 +170,11 @@ jobs:

- uses: opentofu/setup-opentofu@main

- run: sudo apt update ; sudo apt install git -yq ; git config --global --add safe.directory '*'

- name: Init
id: init
uses: lucasmellos/terragrunt-action@main
uses: gruntwork-io/terragrunt-action@v2
with:
tf_version: ${{ inputs.TF_VERSION }}
tg_version: ${{ inputs.TG_VERSION }}
Expand All @@ -187,7 +189,7 @@ jobs:
git config --global --list
- name: Validate
uses: lucasmellos/terragrunt-action@main
uses: gruntwork-io/terragrunt-action@v2
id: validate
with:
tf_version: ${{ inputs.TF_VERSION }}
Expand All @@ -198,7 +200,7 @@ jobs:
OVH_CLOUD_PROJECT_SERVICE: ${{ secrets.OVH_CLOUD_PROJECT_SERVICE }}

- name: Plan
uses: lucasmellos/terragrunt-action@main
uses: gruntwork-io/terragrunt-action@v2
id: plan
with:
tf_version: ${{ inputs.TF_VERSION }}
Expand Down Expand Up @@ -248,7 +250,7 @@ jobs:

- name: Apply
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
uses: lucasmellos/terragrunt-action@main
uses: gruntwork-io/terragrunt-action@v2
id: apply
with:
tf_version: ${{ inputs.TF_VERSION }}
Expand Down

0 comments on commit 8af8179

Please sign in to comment.