This commit is contained in:
parent
3500cfd3f5
commit
cd4c67ef62
|
@ -7,12 +7,12 @@ on:
|
|||
|
||||
jobs:
|
||||
restart_service:
|
||||
runs-on: docker
|
||||
runs-on: native
|
||||
|
||||
steps:
|
||||
- name: Restart website service
|
||||
env:
|
||||
SSH_PRIVATE_KEY: ${{ secrets.WEBSITE_KEY }}
|
||||
run: |
|
||||
echo "$SSH_PRIVATE_KEY" > private_key
|
||||
ssh -i private_key -o StrictHostKeyChecking=no website-host-user@spoodythe.one -t 'systemctl restart website.service'
|
||||
echo "$SSH_PRIVATE_KEY" > /tmp/private_key
|
||||
ssh -i /tmp/private_key -o StrictHostKeyChecking=no website-host-user@spoodythe.one -t 'systemctl restart website.service'
|
||||
|
|
Loading…
Reference in a new issue