tracker/.forgejo/workflows/deploy.yml
Feiko Wielsma 919374fe95
Some checks failed
Deploy via SSH / deploy (push) Failing after 0s
Fix Forgejo Action remote source to explicit github.com
2026-03-25 13:37:47 +01:00

22 lines
576 B
YAML

name: Deploy via SSH
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest # Make sure you have a runner with this label
steps:
- name: Deploy to Server
uses: github.com/appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: 22 # or 8022 based on your previous scp command
script: |
cd ~/Git/tracker
git pull origin main
docker compose up -d --build