We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81203f7 commit 7801fc8Copy full SHA for 7801fc8
.github/workflows/deploy.yml
@@ -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
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