-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 1.13 KB
/
Copy pathrelease-publish.yml
File metadata and controls
38 lines (33 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
on:
release:
types:
- published
name: Deploy to Production
jobs:
get-tg-versions:
permissions:
contents: read
uses: launchbynttdata/launch-workflows/.github/workflows/reusable-terragrunt-versions.yml@0.10.0
build-matrix:
permissions:
contents: read
uses: launchbynttdata/launch-workflows/.github/workflows/reusable-github-matrix-tg.yml@0.10.0
with:
platform_environment: production
call-terragrunt-deploy:
needs: [get-tg-versions, build-matrix]
permissions:
contents: read
id-token: write
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.build-matrix.outputs.matrix) }}
uses: launchbynttdata/launch-workflows/.github/workflows/reusable-terragrunt-deploy.yml@0.10.0
with:
git_branch: ${{ github.ref }}
tf_version: ${{ needs.get-tg-versions.outputs.tf_version }}
tg_version: ${{ needs.get-tg-versions.outputs.tg_version }}
environment: ${{ matrix.terragrunt_environment.environment }}
region: ${{ matrix.terragrunt_environment.region }}
env_id: ${{ matrix.terragrunt_environment.instance }}
secrets: inherit