Files
kubernetes/.woodpecker/ci.yaml
Madison Grubb c6f2e13f4d
Some checks failed
ci/woodpecker/push/ci Pipeline failed
ci/woodpecker/pr/ci Pipeline failed
try new ci via kubectl
2025-08-29 16:55:10 -04:00

23 lines
759 B
YAML

when:
event:
- push
- pull_request
steps:
- name: validate-manifests
image: alpine:latest
commands:
- apk add --no-cache curl bash
- |
echo "Installing kubectl..."
KUBECTL_VERSION=$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)
curl -LO "https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl"
chmod +x kubectl
mv kubectl /usr/local/bin/
- |
echo "Validating Kubernetes manifests with kubectl dry-run..."
for file in $(find . -maxdepth 1 -type f \( -name '*.yaml' -o -name '*.yml' \)); do
echo "Checking $file"
kubectl apply --dry-run=client -f "$file"
done