-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpull-request-ephemeral-deploy.yml
More file actions
38 lines (33 loc) · 1.21 KB
/
pull-request-ephemeral-deploy.yml
File metadata and controls
38 lines (33 loc) · 1.21 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
name: Deploy Ephemeral Sandbox Environment
on:
pull_request:
types: [opened, synchronize, reopened]
branches: [ "**" ]
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: sandbox
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-ephemeral.yml@0.10.0
with:
git_branch: ${{ github.head_ref }}
assume_role_arn: "arn:aws:iam::020127659860:role/github-actions-deploy-role"
tf_version: ${{ needs.get-tg-versions.outputs.tf_version }}
tg_version: ${{ needs.get-tg-versions.outputs.tg_version }}
region: ${{ matrix.terragrunt_environment.region }}
env_id: ${{ matrix.terragrunt_environment.instance }}
secrets: inherit