chore(tooling): integrate forgejo workflow's deploy step into the makefile's
All checks were successful
/ all (push) Successful in 15s

This commit is contained in:
Julien Dessaux 2025-04-07 14:31:30 +02:00
parent 02c1ac7cc2
commit 92f2427e08
Signed by: adyxax
GPG key ID: F92E51B86E07177E
2 changed files with 13 additions and 9 deletions

View file

@ -26,11 +26,6 @@ jobs:
make check no-dirty
- name: 'deploy'
run: |
umask 077
printf '%s' "$SSH_PRIVATE_KEY" | base64 -d > private_key
SSHOPTS="-i private_key -o StrictHostKeyChecking=accept-new"
rsync -a --delete -e "ssh ${SSHOPTS}" public/ www@www.adyxax.org:/srv/www/public/
rsync -e "ssh ${SSHOPTS}" search/search www@www.adyxax.org:/srv/www/
ssh ${SSHOPTS} www@www.adyxax.org "chmod +x search; systemctl --user restart www-search"
make deploy
env:
SSH_PRIVATE_KEY: '${{ secrets.SSH_PRIVATE_KEY }}'