Files
ci-ai/.gitea/workflows/reusable-commands.yml
Tarik Moussa 38a6851b46 feat(cd): auto-deploy ci-ai-bot on push + dehard-code Jetson URL
- .gitea/workflows/cd.yml: on push to main (bot/** or scripts/**),
  build ci-ai-bot:latest on the Pi runner via DooD and force-recreate
  the container with docker compose (no registry push needed)
- reusable-{ai-review,commands,security}.yml: replace hardcoded
  192.168.178.103:11434 with ${{ vars.JETSON_OLLAMA_URL }} (org variable
  set in conformallab → fallback to old IP if variable is missing)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-14 08:19:01 +02:00

42 lines
1.4 KiB
YAML

# GLOBALE, wiederverwendbare Slash-Commands (Feature D + E).
# Wird vom Caller bei einem issue_comment ausgelöst:
# /gen-tests → KI-Test-Vorschläge für den PR
# /summarize → KI-Zusammenfassung des Issue-/PR-Threads
#
# Aufruf (siehe workflows/caller.example.yml):
# commands:
# if: github.event_name == 'issue_comment' && ...
# uses: user2595/ci-ai/.gitea/workflows/reusable-commands.yml@main
# secrets: inherit
name: ci-ai · commands (reusable)
on:
workflow_call: {}
jobs:
command:
runs-on: eulernest
container:
image: python:3.12-slim
options: "--memory=512m --memory-swap=768m"
env:
AI_PROVIDER: ollama
AI_MODEL: coder
# JETSON_OLLAMA_URL: org variable in conformallab → Actions → Variables
AI_BASE_URL: ${{ vars.JETSON_OLLAMA_URL || 'http://192.168.178.103:11434/v1' }}
GITEA_TOKEN: ${{ github.token }}
GITEA_API: https://git.eulernest.eu/api/v1
steps:
- name: Tooling + ci-ai (anon)
run: |
apt-get update -qq && apt-get install -y -qq --no-install-recommends git ca-certificates
git clone --depth 1 https://git.eulernest.eu/user2595/ci-ai.git /opt/ci-ai
- name: /gen-tests
if: startsWith(github.event.comment.body, '/gen-tests')
run: python /opt/ci-ai/scripts/ai_tests.py
- name: /summarize
if: startsWith(github.event.comment.body, '/summarize')
run: python /opt/ci-ai/scripts/ai_summary.py