chore(tooling): update deploy workflow to not need root
All checks were successful
/ test (push) Successful in 20s
/ build (push) Successful in 27s
/ deploy (push) Successful in 4s
/ publish (push) Successful in 8s

This commit is contained in:
Julien Dessaux 2025-03-15 23:30:39 +01:00
parent 5ef1491d35
commit 7d172a96c2
Signed by: adyxax
GPG key ID: F92E51B86E07177E
3 changed files with 13 additions and 9 deletions

View file

@ -49,10 +49,11 @@ jobs:
name: 'ods'
- run: |
umask 077
chmod +x ods
printf '%s' "$SSH_PRIVATE_KEY" | base64 -d > private_key
SSHOPTS="-i private_key -o StrictHostKeyChecking=accept-new"
rsync -e "ssh ${SSHOPTS}" ods root@ods.adyxax.org:/usr/local/bin/
ssh ${SSHOPTS} root@ods.adyxax.org "systemctl restart ods"
rsync -e "ssh ${SSHOPTS}" ods ods@ods.adyxax.org:
ssh ${SSHOPTS} ods@ods.adyxax.org "systemctl --user restart ods"
env:
SSH_PRIVATE_KEY: '${{ secrets.SSH_PRIVATE_KEY }}'
publish: