mirror of
https://github.com/khuedoan/homelab.git
synced 2024-12-22 19:54:33 +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:
|
||||
- --cache=true
|
||||
|
||||
- name: lint
|
||||
- name: pre-commit
|
||||
runAfter:
|
||||
- tools
|
||||
workspaces:
|
||||
@ -50,83 +50,19 @@ spec:
|
||||
- name: source
|
||||
stepTemplate:
|
||||
image: registry.khuedoan.com/tools:latest
|
||||
workingDir: /workspace/source
|
||||
steps:
|
||||
- name: ansible
|
||||
workingDir: /workspace/source/metal
|
||||
- name: run
|
||||
command:
|
||||
- ansible-lint
|
||||
- pre-commit
|
||||
args:
|
||||
- -v
|
||||
- --force-color
|
||||
- name: yaml
|
||||
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
|
||||
- run
|
||||
# - --all-files
|
||||
- --color=always
|
||||
|
||||
- name: external
|
||||
runAfter:
|
||||
- lint
|
||||
- pre-commit
|
||||
workspaces:
|
||||
- name: source
|
||||
workspace: shared-data
|
||||
|
Loading…
Reference in New Issue
Block a user