-
Notifications
You must be signed in to change notification settings - Fork 19
53 lines (50 loc) · 1.52 KB
/
terraform.yml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Infrastructure Deployment
on:
push:
branches:
- main
paths:
- "**.tf"
- "infrastructure/terraform/**"
- "infrastructure/config/**"
- ".github/workflows/terraform.yml"
- ".github/workflows/_terraformEnvironmentTemplate.yml"
pull_request:
branches:
- main
paths:
- "**.tf"
- "infrastructure/terraform/**"
- "infrastructure/config/**"
- ".github/workflows/terraform.yml"
- ".github/workflows/_terraformEnvironmentTemplate.yml"
jobs:
terraform_dev:
uses: ./.github/workflows/_terraformEnvironmentTemplate.yml
name: "Dev"
with:
environment: "dev"
config: "SharedTenant"
terraform_version: "1.9.1"
node_version: 20
working_directory: "./infrastructure/terraform"
tenant_id: "572cf1ec-3f90-49a2-896f-ab2fa36ca0d3"
subscription_id: "be25820a-df86-4794-9e95-6a45cd5c0941"
secrets:
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
terraform_dev_destroy:
uses: ./.github/workflows/_terraformDestroyTemplate.yml
name: "Dev - Destroy"
needs: [terraform_dev]
with:
environment: "dev"
config: "SharedTenant"
terraform_version: "1.9.1"
node_version: 20
working_directory: "./infrastructure/terraform"
tenant_id: "572cf1ec-3f90-49a2-896f-ab2fa36ca0d3"
subscription_id: "be25820a-df86-4794-9e95-6a45cd5c0941"
secrets:
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}