-
Notifications
You must be signed in to change notification settings - Fork 9
41 lines (36 loc) · 1.06 KB
/
iac_main.yaml
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
39
40
name: IaC Main
on:
push:
env:
tf_version: '1.6.2'
tg_version: '0.55.15'
aws_region: us-east-1
jobs:
verify:
if: github.ref != 'refs/heads/main'
strategy:
matrix:
environment: [stage, production]
module: [terraform/tfbackend, network/vpc, services/backend-infra, data-store/cache, data-store/database, services/frontend]
uses: ./.github/workflows/iac_verify.yaml
with:
tf_version: env.tf_version
tg_version: env.tg_version
aws_region: env.aws_region
environment: matrix.envrionment
module: matrix.module
secrets: inherit
apply:
if: github.ref == 'refs/heads/main'
strategy:
matrix:
environment: [stage]
module: [terraform/tfbackend, network/vpc, services/backend-infra, data-store/cache, data-store/database, services/frontend]
uses: ./.github/workflows/iac_apply.yaml
with:
tf_version: env.tf_version
tg_version: env.tg_version
aws_region: env.aws_region
environment: matrix.envrionment
module: matrix.module
secrets: inherit