-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (52 loc) · 1.5 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
54
55
name: Infrastructure Deployment
on:
push:
branches:
- main
paths:
- "**.tf"
- "code/infra/**"
- "code/datamodel/**"
- "config/**"
- ".github/workflows/terraform.yml"
- ".github/workflows/_terraformEnvironmentTemplate.yml"
pull_request:
branches:
- main
paths:
- "**.tf"
- "code/infra/**"
- "code/datamodel/**"
- "config/**"
- ".github/workflows/terraform.yml"
- ".github/workflows/_terraformEnvironmentTemplate.yml"
jobs:
terraform_dev:
uses: ./.github/workflows/_terraformEnvironmentTemplate.yml
name: "Dev"
with:
environment: "dev"
config: "PerfectThymeTech"
terraform_version: "1.9.5"
node_version: 20
working_directory: "./code/infra"
tenant_id: "37963dd4-f4e6-40f8-a7d6-24b97919e452"
subscription_id: "1fdab118-1638-419a-8b12-06c9543714a0"
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: "PerfectThymeTech"
terraform_version: "1.9.5"
node_version: 20
working_directory: "./code/infra"
tenant_id: "37963dd4-f4e6-40f8-a7d6-24b97919e452"
subscription_id: "1fdab118-1638-419a-8b12-06c9543714a0"
secrets:
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}