mirror of
https://github.com/khuedoan/homelab.git
synced 2024-12-23 01:14:38 +07:00
ci: just run pre-commit and external for now
This commit is contained in:
parent
65c33f886c
commit
5ec740c08b
@ -39,7 +39,7 @@ spec:
|
|||||||
value:
|
value:
|
||||||
- --cache=true
|
- --cache=true
|
||||||
|
|
||||||
- name: lint
|
- name: pre-commit
|
||||||
runAfter:
|
runAfter:
|
||||||
- tools
|
- tools
|
||||||
workspaces:
|
workspaces:
|
||||||
@ -50,83 +50,19 @@ spec:
|
|||||||
- name: source
|
- name: source
|
||||||
stepTemplate:
|
stepTemplate:
|
||||||
image: registry.khuedoan.com/tools:latest
|
image: registry.khuedoan.com/tools:latest
|
||||||
|
workingDir: /workspace/source
|
||||||
steps:
|
steps:
|
||||||
- name: ansible
|
- name: run
|
||||||
workingDir: /workspace/source/metal
|
|
||||||
command:
|
command:
|
||||||
- ansible-lint
|
- pre-commit
|
||||||
args:
|
args:
|
||||||
- -v
|
- run
|
||||||
- --force-color
|
# - --all-files
|
||||||
- name: yaml
|
- --color=always
|
||||||
workingDir: /workspace/source
|
|
||||||
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
|
|
||||||
volumes:
|
|
||||||
- name: ansible-secrets
|
|
||||||
secret:
|
|
||||||
secretName: ansible-secrets
|
|
||||||
defaultMode: 0400
|
|
||||||
stepTemplate:
|
|
||||||
image: registry.khuedoan.com/tools:latest
|
|
||||||
workingDir: /workspace/source/metal
|
|
||||||
volumeMounts:
|
|
||||||
- name: ansible-secrets
|
|
||||||
mountPath: /root/.ssh/id_ed25519
|
|
||||||
subPath: id_ed25519
|
|
||||||
command:
|
|
||||||
- make
|
|
||||||
steps:
|
|
||||||
- name: cluster
|
|
||||||
args:
|
|
||||||
- cluster
|
|
||||||
|
|
||||||
- name: bootstrap
|
|
||||||
runAfter:
|
|
||||||
- lint
|
|
||||||
workspaces:
|
|
||||||
- name: source
|
|
||||||
workspace: shared-data
|
|
||||||
taskSpec:
|
|
||||||
workspaces:
|
|
||||||
- name: source
|
|
||||||
stepTemplate:
|
|
||||||
image: registry.khuedoan.com/tools:latest
|
|
||||||
workingDir: /workspace/source/bootstrap
|
|
||||||
command:
|
|
||||||
- make
|
|
||||||
steps:
|
|
||||||
- name: argocd
|
|
||||||
args:
|
|
||||||
- argocd
|
|
||||||
- name: root
|
|
||||||
args:
|
|
||||||
- root
|
|
||||||
|
|
||||||
- name: external
|
- name: external
|
||||||
runAfter:
|
runAfter:
|
||||||
- lint
|
- pre-commit
|
||||||
workspaces:
|
workspaces:
|
||||||
- name: source
|
- name: source
|
||||||
workspace: shared-data
|
workspace: shared-data
|
||||||
|
Loading…
Reference in New Issue
Block a user