-
-
Notifications
You must be signed in to change notification settings - Fork 4
52 lines (49 loc) · 1.33 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
name: Data Landing Zone Deployment
on:
push:
branches:
- main
paths:
- "**.tf"
- "**.yml"
- "**.yaml"
- "!.github/workflows/**"
- "!.pre-commit-config.yaml"
- "!.terraform-docs.yml"
pull_request:
branches:
- main
paths:
- "**.tf"
- "**.yml"
- "**.yaml"
- "!.github/workflows/**"
- "!.pre-commit-config.yaml"
- "!.terraform-docs.yml"
jobs:
terraform:
uses: ./.github/workflows/_terraformEnvironmentTemplate.yml
name: "Terraform"
with:
environment: "dev"
terraform_version: "1.10.3"
node_version: 20
working_directory: "./tests/e2e"
tenant_id: "37963dd4-f4e6-40f8-a7d6-24b97919e452"
subscription_id: "9842be63-c8c0-4647-a5d1-0c5e7f8bbb25"
secrets:
CLIENT_ID: ${{ secrets.CLIENT_ID }}
terraform_destroy:
uses: ./.github/workflows/_terraformDestroyTemplate.yml
name: "Terraform Destroy"
needs: [terraform]
if: github.event_name == 'push' || github.event_name == 'release'
with:
environment: "dev"
terraform_version: "1.10.3"
node_version: 20
working_directory: "./tests/e2e"
tenant_id: "37963dd4-f4e6-40f8-a7d6-24b97919e452"
subscription_id: "9842be63-c8c0-4647-a5d1-0c5e7f8bbb25"
secrets:
CLIENT_ID: ${{ secrets.CLIENT_ID }}