chore(tooling): integrate forgejo workflow's deploy step into the makefile's
This commit is contained in:
parent
605b195085
commit
060942051f
2 changed files with 12 additions and 7 deletions
|
@ -50,11 +50,7 @@ jobs:
|
|||
with:
|
||||
name: 'ods'
|
||||
- run: |
|
||||
umask 077
|
||||
printf '%s' "$SSH_PRIVATE_KEY" | base64 -d > private_key
|
||||
SSHOPTS="-i private_key -o StrictHostKeyChecking=accept-new"
|
||||
rsync -e "ssh ${SSHOPTS}" ods ods@ods.adyxax.org:
|
||||
ssh ${SSHOPTS} ods@ods.adyxax.org "chmod +x ods; systemctl --user restart ods"
|
||||
make deploy
|
||||
env:
|
||||
SSH_PRIVATE_KEY: '${{ secrets.SSH_PRIVATE_KEY }}'
|
||||
publish:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue