Fix volume mount to only persist data, not app code #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |