-
Notifications
You must be signed in to change notification settings - Fork 0
101 lines (83 loc) · 2.6 KB
/
ci.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: Terraform checks
on: [push, pull_request]
jobs:
terraform-linter:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Terraform
uses: hashicorp/setup-terraform@v1
- name: Terraform Format
id: fmt
run: terraform fmt -check -recursive
- name: Terraform Init
id: init-bastion
run: |
cd modules/terraform-zscc-bastion-gcp
terraform init
- name: Terraform Validate
id: validate-bastion
run: |
cd modules/terraform-zscc-bastion-gcp
terraform validate -no-color
- name: Terraform Init
id: init-zscc-ccvm
run: |
cd modules/terraform-zscc-ccvm-gcp
terraform init
- name: Terraform Validate
id: validate-zscc-ccvm
run: |
cd modules/terraform-zscc-ccvm-gcp
terraform validate -no-color
- name: Terraform Init
id: init-zscc-cloud-dns-gcp
run: |
cd modules/terraform-zscc-cloud-dns-gcp
terraform init
- name: Terraform Validate
id: validate-zscc-cloud-dns-gcp
run: |
cd modules/terraform-zscc-cloud-dns-gcp
terraform validate -no-color
- name: Terraform Init
id: init-zscc-iam-service-account-gcp
run: |
cd modules/terraform-zscc-iam-service-account-gcp
terraform init
- name: Terraform Validate
id: validate-zscc-zscc-iam-service-account-gcp
run: |
cd modules/terraform-zscc-iam-service-account-gcp
terraform validate -no-color
- name: Terraform Init
id: init-zscc-ilb-gcp
run: |
cd modules/terraform-zscc-ilb-gcp
terraform init
- name: Terraform Validate
id: validate-zscc-ilb-gcp
run: |
cd modules/terraform-zscc-ilb-gcp
terraform validate -no-color
- name: Terraform Init
id: init-zscc-network-gcp
run: |
cd modules/terraform-zscc-network-gcp
terraform init
- name: Terraform Validate
id: validate-zscc-network-gcp
run: |
cd modules/terraform-zscc-network-gcp
terraform validate -no-color
- name: Terraform Init
id: init-zscc-workload-gcp
run: |
cd modules/terraform-zscc-workload-gcp
terraform init
- name: Terraform Validate
id: validate-zscc-workload-gcp
run: |
cd modules/terraform-zscc-workload-gcp
terraform validate -no-color