mirror of
https://github.com/khuedoan/homelab.git
synced 2024-12-23 01:04:32 +07:00
ci: add Terraform lint check
This commit is contained in:
parent
98a57ce9df
commit
d07b01b96b
@ -48,6 +48,16 @@ spec:
|
||||
secret:
|
||||
secretName: terraform-credentials
|
||||
steps:
|
||||
- name: lint
|
||||
image: hashicorp/terraform:1.1.2
|
||||
workingDir: $(workspaces.source.path)/external
|
||||
command:
|
||||
- terraform
|
||||
args:
|
||||
- fmt
|
||||
- -recursive
|
||||
- -diff
|
||||
- -check
|
||||
- name: init
|
||||
image: hashicorp/terraform:1.1.2
|
||||
workingDir: $(workspaces.source.path)/external
|
||||
@ -90,7 +100,7 @@ spec:
|
||||
value: http://gitea-http.gitea:3000/ops/homelab
|
||||
- name: revision
|
||||
value: master
|
||||
- name: terraform
|
||||
- name: external
|
||||
runAfter: ["fetch-repo"] # Wait until the clone is done before reading the readme.
|
||||
workspaces:
|
||||
- name: source
|
||||
|
Loading…
Reference in New Issue
Block a user