-
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (46 loc) · 1.29 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
name: Infrastructure Deployment
on:
push:
branches:
- main
paths:
- "**.tf"
- "code/infra/**"
- ".github/workflows/terraform.yml"
pull_request:
branches:
- main
paths:
- "**.tf"
- "code/infra/**"
- ".github/workflows/terraform.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: "3556be79-2979-4b19-a1af-4dd4e6d9ed7e"
subscription_id: "8f171ff9-2b5b-4f0f-aed5-7fa360a1d094"
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: "3556be79-2979-4b19-a1af-4dd4e6d9ed7e"
subscription_id: "8f171ff9-2b5b-4f0f-aed5-7fa360a1d094"
secrets:
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}