ci: validate Renovate manifests with kubeconform
This commit is contained in:
1 parent
592d24ce96
commit
18167e7bc3
1 file changed
+10
-3
@@ -30,9 +30,16 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
for manifest in renovate/k8s/namespace.yaml renovate/k8s/configmap.yaml renovate/k8s/cronjob.yaml; do
|
docker run --rm \
|
||||||
kubectl apply --dry-run=client --validate=false -f "$manifest" >/dev/null
|
-v "$PWD:/work" \
|
||||||
done
|
-w /work \
|
||||||
|
ghcr.io/yannh/kubeconform:latest \
|
||||||
|
-strict \
|
||||||
|
-ignore-missing-schemas \
|
||||||
|
-summary \
|
||||||
|
renovate/k8s/namespace.yaml \
|
||||||
|
renovate/k8s/configmap.yaml \
|
||||||
|
renovate/k8s/cronjob.yaml
|
||||||
|
|
||||||
- name: Validate Renovate repository config
|
- name: Validate Renovate repository config
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
Reference in new issue
Block a user