From 9fb399b3d7fb30b6bf2339294c369b6b8abcceb9 Mon Sep 17 00:00:00 2001 From: Lars Date: Sun, 10 Aug 2025 15:14:20 +0200 Subject: [PATCH] .gitea/workflows/deploy.yml aktualisiert --- .gitea/workflows/deploy.yml | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 68a0459..849c44a 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -1,15 +1,28 @@ -name: Deploy to llm-node +name: Deploy (host runner, absolute actions) on: push: - branches: [ "main" ] # ggf. Branch anpassen + branches: [ "main" ] jobs: deploy: - runs-on: llm-node-runner # muss zum Runner-Label passen + runs-on: [ "linux_host" ] # muss zu den Runner-Labels passen steps: - name: Checkout - uses: actions/checkout@v4 + uses: https://gitea.com/actions/checkout@v4 - - name: Deploy - run: bash -x deploy.sh + - name: Setup Python + uses: https://gitea.com/actions/setup-python@v5 + with: + python-version: '3.12' + + - name: Sync repository to /home/llmadmin + run: | + rsync -a --delete \ + knowledge/ /home/llmadmin/knowledge/ \ + llm-api/ /home/llmadmin/llm-api/ \ + scripts/ /home/llmadmin/scripts/ + + - name: Reload API (optional) + run: | + sudo systemctl restart llm-api || true