chore(tooling): update deploy workflow to not need root
All checks were successful
/ build (push) Successful in 26s
/ deploy (push) Successful in 5s
/ test (push) Successful in 21s
/ publish (push) Successful in 7s

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

View file

@ -51,8 +51,8 @@ jobs:
umask 077
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: