use custom image for kubeconform workflow
This commit is contained in:
@@ -12,21 +12,8 @@ jobs:
|
||||
kubeconform:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ghcr.io/yannh/kubeconform:v0.7.0-alpine
|
||||
image: gitea.akshun-lab.cc/aggarwalakshun/kube-tools:1.0.0
|
||||
steps:
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
apk add --no-cache \
|
||||
yq \
|
||||
findutils \
|
||||
curl \
|
||||
jq \
|
||||
npm \
|
||||
nodejs \
|
||||
bash \
|
||||
git
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
@@ -76,7 +63,7 @@ jobs:
|
||||
echo "Found $KIND - using custom schema"
|
||||
SCHEMA_URL="https://raw.githubusercontent.com/datreeio/CRDs-catalog/refs/heads/main/${SCHEMA_MAP[$KIND]}"
|
||||
|
||||
if ! echo "$manifest" | /kubeconform \
|
||||
if ! echo "$manifest" | kubeconform \
|
||||
-schema-location "$SCHEMA_URL" \
|
||||
-cache "$KUBECONFORM_CACHE_DIR" \
|
||||
-output json \
|
||||
@@ -85,7 +72,7 @@ jobs:
|
||||
fi
|
||||
else
|
||||
echo "Validating with default schemas"
|
||||
if ! echo "$manifest" | /kubeconform \
|
||||
if ! echo "$manifest" | kubeconform \
|
||||
-schema-location default \
|
||||
-cache "$KUBECONFORM_CACHE_DIR" \
|
||||
-output json \
|
||||
|
||||
Reference in New Issue
Block a user