Ersetzt die private LAN-IP des Jetson durch jetson.local in Doku, Beispiel-Workflows und als Default in scripts/llm.py. Betrifft nur Fallback-Werte -- die Org-Variable JETSON_OLLAMA_URL bzw. AI_BASE_URL hat weiterhin Vorrang. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
36 lines
1.2 KiB
YAML
36 lines
1.2 KiB
YAML
# Feature A — KI-PR-Review + Summary. Kopie -> .gitea/workflows/ai-review.yml
|
|
#
|
|
# Läuft auf dem Pi-Runner (capacity 1, ~3-4 GB RAM) -> Memory-Cap + schlankes
|
|
# python-Image. KEINE JS-Actions (kein node nötig): ci-ai wird manuell geklont,
|
|
# git.eulernest.eu löst per Runner-add-host auf die LAN-IP auf. Ohne
|
|
# Das KI-Backend ist die Jetson-Ollama (self-hosted, LAN-direkt, kein Key).
|
|
name: AI PR Review
|
|
|
|
on:
|
|
workflow_dispatch: {}
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
|
|
jobs:
|
|
review:
|
|
runs-on: eulernest
|
|
container:
|
|
image: python:3.12-slim
|
|
options: "--memory=512m --memory-swap=768m"
|
|
steps:
|
|
- name: Tooling (git)
|
|
run: apt-get update -qq && apt-get install -y -qq --no-install-recommends git ca-certificates
|
|
|
|
- name: ci-ai-Skripte holen
|
|
run: git clone --depth 1 https://git.eulernest.eu/user2595/ci-ai.git /opt/ci-ai
|
|
|
|
- name: KI-Review (überspringt sauber ohne Key)
|
|
env:
|
|
AI_PROVIDER: ollama
|
|
AI_MODEL: coder
|
|
AI_BASE_URL: http://jetson.local:11434/v1
|
|
GITEA_TOKEN: ${{ github.token }}
|
|
GITEA_API: https://git.eulernest.eu/api/v1
|
|
run: python /opt/ci-ai/scripts/ai_review.py
|
|
|