Skip to content

Commit 6f52827

Browse files
Read versions from .tool-versions file
1 parent 0ef949c commit 6f52827

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed

.github/workflows/deploy-sandbox.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,31 @@ on:
55
branches: [ "**" ]
66

77
jobs:
8+
get-tg-versions:
9+
permissions:
10+
contents: read
11+
uses: launchbynttdata/launch-workflows/.github/workflows/reusable-terragrunt-versions.yml@0.1.4
12+
813
build-matrix:
914
permissions:
1015
contents: read
11-
uses: launchbynttdata/launch-workflows/.github/workflows/reusable-github-matrix-tg.yml@0.1.3
16+
uses: launchbynttdata/launch-workflows/.github/workflows/reusable-github-matrix-tg.yml@0.1.4
1217
with:
1318
platform_environment: sandbox
1419

1520
call-terragrunt-deploy:
16-
needs: build-matrix
21+
needs: [get-tg-versions, build-matrix]
1722
permissions:
1823
contents: read
1924
id-token: write
2025
strategy:
2126
fail-fast: false
2227
matrix: ${{ fromJson(needs.build-matrix.outputs.matrix) }}
2328

24-
uses: launchbynttdata/launch-workflows/.github/workflows/reusable-terragrunt-deploy.yml@0.1.3
29+
uses: launchbynttdata/launch-workflows/.github/workflows/reusable-terragrunt-deploy.yml@0.1.4
2530
with:
26-
tf_version: '1.5.5'
27-
tg_version: '0.54.11'
31+
tf_version: ${{ needs.get-tg-versions.outputs.tf_version }}
32+
tg_version: ${{ needs.get-tg-versions.outputs.tg_version }}
2833
environment: ${{ matrix.terragrunt_environment.environment }}
2934
region: ${{ matrix.terragrunt_environment.region }}
3035
env_id: ${{ matrix.terragrunt_environment.instance }}

.github/workflows/release-published.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,15 @@ on:
66
name: Deploy to Production
77

88
jobs:
9+
get-tg-versions:
10+
permissions:
11+
contents: read
12+
uses: launchbynttdata/launch-workflows/.github/workflows/reusable-terragrunt-versions.yml@0.1.4
13+
914
build-matrix:
1015
permissions:
1116
contents: read
12-
uses: launchbynttdata/launch-workflows/.github/workflows/reusable-github-matrix-tg.yml@0.1.3
17+
uses: launchbynttdata/launch-workflows/.github/workflows/reusable-github-matrix-tg.yml@0.1.4
1318
with:
1419
platform_environment: production
1520

@@ -22,7 +27,7 @@ jobs:
2227
fail-fast: false
2328
matrix: ${{ fromJson(needs.build-matrix.outputs.matrix) }}
2429

25-
uses: launchbynttdata/launch-workflows/.github/workflows/reusable-terragrunt-deploy.yml@0.1.3
30+
uses: launchbynttdata/launch-workflows/.github/workflows/reusable-terragrunt-deploy.yml@0.1.4
2631
with:
2732
tf_version: '1.5.5'
2833
tg_version: '0.54.11'

.tool-versions

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
python 3.13.1
2+
terraform 1.5.5
3+
terragrunt 0.54.11

0 commit comments

Comments
 (0)