Skip to content

refactor(make): add phony and dir variable #9

refactor(make): add phony and dir variable

refactor(make): add phony and dir variable #9

Workflow file for this run

name: Deploy to Hetzner
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up SSH
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Add known_hosts
run: echo "${{ secrets.KNOWN_HOSTS }}" >> ~/.ssh/known_hosts
- name: Run git pull and Docker Compose on server
run: |
ssh [email protected] << 'EOF'
cd /home/ubuntu/nostr-relayer
git pull origin main
make deploy
EOF