ci: add self-deploy workflow via workflow_dispatch
All checks were successful
Build Nanobot OAuth / build (push) Successful in 41s
Build Nanobot OAuth / cleanup (push) Successful in 1s

Allows triggering a deploy via Gitea API. SSHes to Unraid to pull
latest image and restart the nanobot container.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
wylab
2026-02-14 03:40:43 +01:00
parent 2954933a55
commit c12d234ee8

16
.github/workflows/deploy.yml vendored Normal file
View File

@@ -0,0 +1,16 @@
name: Deploy Nanobot
on:
workflow_dispatch:
jobs:
deploy:
runs-on: [self-hosted, linux-amd64]
timeout-minutes: 5
steps:
- name: Pull latest image and restart container
env:
UNRAID_PASS: ${{ secrets.UNRAID_PASS }}
run: |
sshpass -p "$UNRAID_PASS" ssh -o StrictHostKeyChecking=no -p 23 root@192.168.1.50 \
"docker pull git.wylab.me/wylab/nanobot:latest && docker restart nanobot"