-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (28 loc) · 856 Bytes
/
deploy.yml
File metadata and controls
31 lines (28 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Deploy to unRAID
on:
push:
branches: [main]
workflow_dispatch: # Allow manual trigger from GitHub UI
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Connect to Tailscale
uses: tailscale/github-action@v2
with:
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
tags: tag:ci
- name: Deploy to unRAID via SSH
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.UNRAID_HOST }}
username: ${{ secrets.UNRAID_USER }}
key: ${{ secrets.UNRAID_SSH_KEY }}
port: 22
script: |
cd /mnt/user/appdata/simplenotes
git pull origin main
docker-compose down
docker-compose build --no-cache
docker-compose up -d