Skip to content

Commit 7801fc8

Browse files
Samuel Volchenboumclaude
authored andcommitted
Add GitHub Actions workflow for auto-deploy via Tailscale
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 81203f7 commit 7801fc8

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Deploy to unRAID
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch: # Allow manual trigger from GitHub UI
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Connect to Tailscale
13+
uses: tailscale/github-action@v2
14+
with:
15+
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
16+
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
17+
tags: tag:ci
18+
19+
- name: Deploy to unRAID via SSH
20+
uses: appleboy/ssh-action@v1.0.3
21+
with:
22+
host: ${{ secrets.UNRAID_HOST }}
23+
username: ${{ secrets.UNRAID_USER }}
24+
key: ${{ secrets.UNRAID_SSH_KEY }}
25+
port: 22
26+
script: |
27+
cd /mnt/user/appdata/simplenotes
28+
git pull origin main
29+
docker-compose up -d --build

0 commit comments

Comments
 (0)