try new ci via kubectl #1
@@ -1,9 +1,22 @@
|
||||
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
|
||||
- |
|
||||
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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user