Initial commit of gitea-ai-webhook bot with CI/CD

This commit is contained in:
Ben
2026-01-01 04:39:29 +00:00
commit c8ea6d7288
6 changed files with 239 additions and 0 deletions

31
compose.yaml Normal file
View File

@@ -0,0 +1,31 @@
services:
ai-webhook:
build: .
container_name: gitea-ai-webhook
restart: always
ports:
- "3000:3000"
environment:
- GITEA_TOKEN=${GITEA_TOKEN}
# LLM Configuration
- LLM__PROVIDER=${LLM_PROVIDER:-OPENAI}
- LLM__META__MODEL=${LLM_MODEL:-gpt-4o}
# OpenAI / Compatible API Config
- LLM__HTTP_CLIENT__API_TOKEN=${OPENAI_API_KEY}
- LLM__HTTP_CLIENT__API_URL=${OPENAI_BASE_URL:-https://api.openai.com/v1/}
# VCS Config
- VCS__PROVIDER=GITEA
- VCS__HTTP_CLIENT__API_TOKEN=${GITEA_TOKEN}
- VCS__HTTP_CLIENT__API_URL=${GITEA_API_URL:-http://gitea-server:3000/api/v1}
volumes:
- xai-cache:/root/.cache
networks:
- gitea_network
volumes:
xai-cache:
networks:
gitea_network:
external: true # Assuming Gitea is on a network, or remove if standalone