chore(tooling): update deploy workflow to not need root
This commit is contained in:
parent
5ef1491d35
commit
3d1e6aa045
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue