.gitea/workflows/deploy.yml aktualisiert
This commit is contained in:
parent
135f878203
commit
9fb399b3d7
|
|
@ -1,15 +1,28 @@
|
||||||
name: Deploy to llm-node
|
name: Deploy (host runner, absolute actions)
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ] # ggf. Branch anpassen
|
branches: [ "main" ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: llm-node-runner # muss zum Runner-Label passen
|
runs-on: [ "linux_host" ] # muss zu den Runner-Labels passen
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: https://gitea.com/actions/checkout@v4
|
||||||
|
|
||||||
- name: Deploy
|
- name: Setup Python
|
||||||
run: bash -x deploy.sh
|
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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user