Skip to content

Commit

Permalink
update action to restart website container with latest image
Browse files Browse the repository at this point in the history
  • Loading branch information
Milian Tomzig committed Oct 6, 2024
1 parent ac6f79a commit fbffaa1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/jekyll-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,12 @@ jobs:
echo "${SSH_PRIVATE_KEY}" | base64 -d > ${HOME}/.ssh/deploy.id_rsa
chmod 700 ${HOME}/.ssh/deploy.id_rsa
rsync -azL -e "ssh -i ${HOME}/.ssh/deploy.id_rsa -o StrictHostKeyChecking=no" --delete --progress _site/ root@saturn.munichmakerlab.de:/data/website/htdocs/
- name: Update Docker container
shell: bash
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
run: |
ssh -i ${HOME}/.ssh/deploy.id_rsa -o StrictHostKeyChecking=no root@saturn.munichmakerlab.de << EOF
docker pull ghcr.io/munichmakerlab/website:main
systemctl restart docker-website.service
EOF

0 comments on commit fbffaa1

Please sign in to comment.