From c12d234ee8dc9bfdf9b356ffb64a9fd9f7c08e98 Mon Sep 17 00:00:00 2001 From: wylab Date: Sat, 14 Feb 2026 03:40:43 +0100 Subject: [PATCH] ci: add self-deploy workflow via workflow_dispatch 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 --- .github/workflows/deploy.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..3068a79 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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"