feat: added forgejo workflow to validate yaml manifests with kubeconform
This commit is contained in:
parent
c846047db1
commit
9e5b996cb7
1 changed files with 20 additions and 0 deletions
20
.forgejo/workflows/validate.yaml
Normal file
20
.forgejo/workflows/validate.yaml
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- dev
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
validate:
|
||||||
|
runs-on: docker
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install kubeconform
|
||||||
|
run: |
|
||||||
|
curl -sL https://github.com/yannh/kubeconform/releases/latest/download/kubeconform-linux-amd64.tar.gz | tar xz
|
||||||
|
mv kubeconform /usr/local/bin
|
||||||
|
|
||||||
|
- name: Validate manifests
|
||||||
|
run: |
|
||||||
|
kubeconform -strict -summary ./manifests/
|
||||||
Loading…
Add table
Reference in a new issue