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