Skip to content

Commit

Permalink
use tg action
Browse files Browse the repository at this point in the history
  • Loading branch information
yngvark committed Jan 20, 2025
1 parent fadd187 commit 930d0db
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/reusable-terragrunt-plan-apply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,24 @@ jobs:
# If this step fails, make sure you have updated and commited a lock file covering all platforms:
# terraform providers lock -platform=darwin_amd64 -platform=darwin_arm64 -platform=linux_amd64
- name: Initialize the working directory containing Terraform configuration files
uses: gruntwork-io/terragrunt-action@v2
with:
tf_version: "1.10.4"
tg_version: "0.72.0"
tg_dir: "stacks/dev/app-too-tikki"
tg_command: 'plan'
run: |
terragrunt init -input=false -lockfile=readonly
- name: Create a Terraform execution plan (don't cancel this step)
id: plan
uses: gruntwork-io/terragrunt-action@v2
with:
tf_version: "1.10.4"
tg_version: "0.72.0"
tg_dir: "stacks/dev/app-too-tikki"
tg_command: 'plan'
run: |
terragrunt plan -input=false -no-color -detailed-exitcode -out=${{ steps.output-plan-filename.outputs.PLAN_FILENAME }}
Expand All @@ -195,7 +207,7 @@ jobs:
cat << EOF > plan.md
## Terraform execution
Running Terraform in \`${{ inputs.working_directory }}\`.
Running Terragrunt in \`${{ inputs.working_directory }}\`.
<details><summary>Show plan</summary>
Expand Down

0 comments on commit 930d0db

Please sign in to comment.