17 Commits
Author SHA1 Message Date
Lars 839220856b llm-api/readme.md aktualisiert
Deploy Trainer_LLM to llm-node / deploy (push) Successful in 9s
2025-08-10 16:08:32 +02:00
Lars aa8f3f69a2 llm-api/readme.md aktualisiert
Deploy Trainer_LLM to llm-node / deploy (push) Failing after 1s
2025-08-10 16:03:56 +02:00
Lars 1ae474c48b llm-api/readme.md aktualisiert
Deploy Trainer_LLM to llm-node / deploy (push) Failing after 1s
2025-08-10 16:03:29 +02:00
Lars edf997a4c1 .gitea/workflows/deploy.yml aktualisiert 2025-08-10 16:02:56 +02:00
Lars 508bd49512 llm-api/readme.md aktualisiert
Deploy Trainer_LLM to llm-node / deploy (push) Failing after 1s
2025-08-10 15:58:08 +02:00
Lars 37bd250eeb llm-api/readme.md hinzugefügt
Deploy Trainer_LLM to llm-node / deploy (push) Failing after 8s
2025-08-10 15:52:53 +02:00
Lars 0da4076a32 .gitattributes aktualisiert 2025-08-10 15:52:09 +02:00
Lars 37854a62db .gitea/workflows/deploy.yml aktualisiert 2025-08-10 15:51:38 +02:00
Lars c5be891b6a .gitea/workflows/ping.yml gelöscht
Deploy (host runner, absolute actions) / deploy (push) Failing after 2s
2025-08-10 15:49:40 +02:00
Lars 9fb399b3d7 .gitea/workflows/deploy.yml aktualisiert
Deploy (host runner, absolute actions) / deploy (push) Failing after 26s
ping / test (push) Has been cancelled
2025-08-10 15:14:20 +02:00
Lars 135f878203 .gitea/workflows/deploy.yml hinzugefügt
Deploy to llm-node / deploy (push) Waiting to run
ping / test (push) Waiting to run
2025-08-10 15:09:54 +02:00
Lars efea0476d8 llm-api/embed_router.py aktualisiert
ping / test (push) Waiting to run
2025-08-10 15:08:00 +02:00
Lars 1fe7c0da5c .gitea/workflows/ping.yml aktualisiert
ping / test (push) Waiting to run
2025-08-10 15:07:27 +02:00
Lars 3986722477 .gitea/workflows/ping.yml hinzugefügt
ping / test (push) Failing after 17s
2025-08-10 15:01:30 +02:00
Lars 7228ea0a39 llm-api/embed_router.py aktualisiert 2025-08-10 14:22:10 +02:00
Lars 9a4c23af12 llm-api/embed_router.py aktualisiert 2025-08-10 14:19:53 +02:00
Lars 19e8bc923c llm-api/exercise_router.py aktualisiert 2025-08-10 13:39:27 +02:00
5 changed files with 94 additions and 9 deletions

No files matched your search

+11 -9
View File
@@ -1,11 +1,13 @@
* text=auto eol=lf
*.sh text eol=lf
*.py text eol=lf
*.yml text eol=lf
*.json text eol=lf
*.md text eol=lf
*.bat text eol=crlf
*.png binary
*.jpg binary
*.pdf binary
# Typische Binärformate nicht normalisieren
*.png -text
*.jpg -text
*.jpeg -text
*.gif -text
*.pdf -text
*.zip -text
*.tar -text
*.tar.gz -text
*.tgz -text
*.mp4 -text
+79
View File
@@ -0,0 +1,79 @@
name: Deploy Trainer_LLM to llm-node
on:
push:
branches: [ "main" ]
paths:
- "knowledge/**"
- "llm-api/**"
- "scripts/**"
concurrency:
group: deploy-trainer-llm
cancel-in-progress: false
jobs:
deploy:
runs-on: linux_host # muss zum Runner-Label passen
steps:
- name: Checkout
# Absolute URL reduziert Abhängigkeit von DEFAULT_ACTIONS_URL
uses: https://github.com/actions/checkout@v4
- name: Sanity — Runner & Commit
run: |
echo "Runner: $RUNNER_NAME Labels: $RUNNER_LABELS"
echo "Commit: $GITEA_SHA Ref: $GITEA_REF"
uname -a
- name: Debug whoami & write test
run: |
whoami
id
getent passwd $(whoami) || true
# Testet Schreibrecht unter /home/llmadmin
touch /home/llmadmin/.write_test && rm /home/llmadmin/.write_test || echo "no write"
- name: Ensure target directories exist
run: |
mkdir -p /home/llmadmin/knowledge
mkdir -p /home/llmadmin/llm-api
mkdir -p /home/llmadmin/scripts
- name: Rsync knowledge/
if: ${{ hashFiles('knowledge/**') != '' }}
run: |
rsync -a --delete --exclude='.git' knowledge/ /home/llmadmin/knowledge/
echo "Synced knowledge/"
- name: Rsync llm-api/
if: ${{ hashFiles('llm-api/**') != '' }}
run: |
rsync -a --delete --exclude='.git' llm-api/ /home/llmadmin/llm-api/
echo "Synced llm-api/"
- name: Rsync scripts/
if: ${{ hashFiles('scripts/**') != '' }}
run: |
rsync -a --delete --exclude='.git' scripts/ /home/llmadmin/scripts/
echo "Synced scripts/"
- name: Optional — systemctl --user restart llm-api (ignore if missing)
continue-on-error: true
env:
XDG_RUNTIME_DIR: /run/user/${{ inputs.uid || 1000 }}
run: |
# Versuche nur zu restarten, wenn der Service existiert
if systemctl --user list-unit-files | grep -q '^llm-api.service'; then
systemctl --user restart llm-api.service
systemctl --user --no-pager status llm-api.service --full -l || true
else
echo "llm-api.service nicht gefunden — Schritt wird übersprungen."
fi
- name: Post-check — show latest changes
run: |
echo "Deploy complete. Listing targets:"
ls -la /home/llmadmin/knowledge | tail -n +1 || true
ls -la /home/llmadmin/llm-api | tail -n +1 || true
ls -la /home/llmadmin/scripts | tail -n +1 || true
+1
View File
@@ -1,3 +1,4 @@
# Kommentarzeile
from fastapi import APIRouter, HTTPException, Query
from fastapi.responses import JSONResponse
from pydantic import BaseModel, Field
+2
View File
@@ -1,3 +1,5 @@
# Test eines Kommentars, um die Funktion des gitea testen zu können
from fastapi import APIRouter, HTTPException, Query
from pydantic import BaseModel, Field
from typing import List, Optional, Dict, Any
+1
View File
@@ -0,0 +1 @@
Ein kurzer Test