Add central CI/CD controller for all Gitea projects

- Webhook-based controller listens for push events from all repos
- Auto-detects Dockerfile, triggers Kaniko build, pushes to registry
- Updates gitops-infra kustomization with new image tag
- Auto-scaffolds gitops environment for new projects
- Ignores non-main branches and repos in ignore list (gitops-infra)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-05 21:08:02 +00:00
parent 478fc5a2b6
commit 9fad0b80c5
3 changed files with 683 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
FROM python:3.12-alpine
RUN apk add --no-cache git curl kubectl
WORKDIR /app
COPY controller.py .
EXPOSE 8080
CMD ["python3", "controller.py"]