mirror of
https://github.com/khuedoan/homelab.git
synced 2025-02-02 04:14:28 +07:00
ci: add lint task back
This commit is contained in:
parent
d16f56981b
commit
9ae548d7dd
@ -39,13 +39,45 @@ spec:
|
||||
value:
|
||||
- --cache=true
|
||||
|
||||
# TODO lint
|
||||
- name: metal
|
||||
- name: lint
|
||||
runAfter:
|
||||
- tools
|
||||
workspaces:
|
||||
- name: source
|
||||
workspace: shared-data
|
||||
taskSpec:
|
||||
workspaces:
|
||||
- name: source
|
||||
stepTemplate:
|
||||
image: registry.khuedoan.com/tools:latest
|
||||
steps:
|
||||
- name: ansible
|
||||
workingDir: /workspace/source/metal
|
||||
command:
|
||||
- ansible-lint
|
||||
args:
|
||||
- -v
|
||||
- name: yaml
|
||||
command:
|
||||
- yamllint
|
||||
args:
|
||||
- .
|
||||
- name: terraform
|
||||
workingDir: /workspace/source/external
|
||||
command:
|
||||
- terraform
|
||||
args:
|
||||
- fmt
|
||||
- -recursive
|
||||
- -check
|
||||
- -diff
|
||||
|
||||
- name: metal
|
||||
runAfter:
|
||||
- lint
|
||||
workspaces:
|
||||
- name: source
|
||||
workspace: shared-data
|
||||
taskSpec:
|
||||
workspaces:
|
||||
- name: source
|
||||
@ -70,7 +102,7 @@ spec:
|
||||
|
||||
- name: bootstrap
|
||||
runAfter:
|
||||
- tools
|
||||
- lint
|
||||
workspaces:
|
||||
- name: source
|
||||
workspace: shared-data
|
||||
@ -92,7 +124,7 @@ spec:
|
||||
|
||||
- name: external
|
||||
runAfter:
|
||||
- tools
|
||||
- lint
|
||||
workspaces:
|
||||
- name: source
|
||||
workspace: shared-data
|
||||
|
Loading…
Reference in New Issue
Block a user