add kubeconform action #168
18
.gitea/workflows/kubeconform.yml
Normal file
18
.gitea/workflows/kubeconform.yml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
name: Validate Kubernetes Manifests
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches: [ main]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
kubeconform:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: ghcr.io/yannh/kubeconform:latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
run: |
|
||||||
|
git clone https://gitea.akshun-lab.cc/aggarwalakshun/k3s.git /mnt
|
||||||
|
- name: Validate Manifests
|
||||||
|
run: |
|
||||||
|
/kubeconform -verbose -summary -schema-location default -kinds '*' /mnt/**/*.yml
|
||||||
Reference in New Issue
Block a user