diff --git a/.woodpecker/ci.yaml b/.woodpecker/ci.yaml index 5f65a2f..d1246f0 100644 --- a/.woodpecker/ci.yaml +++ b/.woodpecker/ci.yaml @@ -1,9 +1,21 @@ when: - - event: push - branch: main + event: + - push + - pull_request steps: - - name: test - image: debian + - name: validate-manifests + image: alpine:latest commands: - - echo "This is the test step" + - apk add --no-cache curl bash ca-certificates + - update-ca-certificates + - | + echo "Installing kubectl..." + curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" + install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl + - | + 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 diff --git a/gitea-chart.yml b/gitea-chart.yml index 6cd5b6c..1675153 100644 --- a/gitea-chart.yml +++ b/gitea-chart.yml @@ -38,6 +38,8 @@ spec: database: DB_TYPE: sqlite3 NAME: /data/gitea/gitea.db + webhook: + ALLOWED_HOST_LIST: ci.keligrubb.com ingress: enabled: true className: nginx