build: add container restart
Some checks failed
Publish / deploy_via_ssh (push) Failing after 2s

This commit is contained in:
2023-07-08 22:09:55 +03:00
parent a886beb2ac
commit 7a7c76a38d

View File

@@ -16,3 +16,13 @@ jobs:
chmod 700 ~/.ssh
chmod 600 ~/.ssh/id_ed25519
scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -r ${{ gitea.workspace }}/manifests ${{ secrets.USERNAME }}@${{ secrets.HOST }}:/srv/teu/rewinger/packages/
- name: Restart container
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_KEY }}
port: 22
script: |
sudo docker container restart rewinger