-
Notifications
You must be signed in to change notification settings - Fork 0
97 lines (75 loc) · 2.45 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
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
name: Terraform Checks
on:
pull_request:
branches:
- main
jobs:
terraform:
name: Terraform Checks
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Terraform
uses: hashicorp/setup-terraform@v1
with:
terraform_version: 1.0.0
- name: Terraform Format Check
run: terraform fmt -check -recursive
- name: Terraform Init
run: terraform init
working-directory: ./terraform/modules/galileo-aks
- name: Terraform Validate
run: terraform validate
working-directory: ./terraform/modules/galileo-aks
- name: Install TFLint
run: |
curl -s https://raw.githubusercontent.com/terraform-linters/tflint/master/install_linux.sh | bash
- name: TFLint
run: tflint
working-directory: ./terraform/modules/galileo-aks
- name: Install tfsec
run: |
curl -s https://raw.githubusercontent.com/aquasecurity/tfsec/master/scripts/install_linux.sh | bash
- name: tfsec
run: tfsec
working-directory: ./terraform/modules/galileo-aks
- name: Terraform Plan
run: terraform plan
working-directory: ./terraform/modules/galileo-aks
env:
TF_VAR_example: "example"
- name: Terraform Init for EKS
run: terraform init
working-directory: ./terraform/modules/galileo-eks
- name: Terraform Validate for EKS
run: terraform validate
working-directory: ./terraform/modules/galileo-eks
- name: TFLint for EKS
run: tflint
working-directory: ./terraform/modules/galileo-eks
- name: tfsec for EKS
run: tfsec
working-directory: ./terraform/modules/galileo-eks
- name: Terraform Plan for EKS
run: terraform plan
working-directory: ./terraform/modules/galileo-eks
env:
TF_VAR_example: "example"
- name: Terraform Init for GKE
run: terraform init
working-directory: ./terraform/modules/galileo-gke
- name: Terraform Validate for GKE
run: terraform validate
working-directory: ./terraform/modules/galileo-gke
- name: TFLint for GKE
run: tflint
working-directory: ./terraform/modules/galileo-gke
- name: tfsec for GKE
run: tfsec
working-directory: ./terraform/modules/galileo-gke
- name: Terraform Plan for GKE
run: terraform plan
working-directory: ./terraform/modules/galileo-gke
env:
TF_VAR_example: "example"