Skip to content

Commit fbffaa1

Browse files
author
Milian Tomzig
committed
update action to restart website container with latest image
1 parent ac6f79a commit fbffaa1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/jekyll-deploy.yml

+9
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,12 @@ jobs:
3333
echo "${SSH_PRIVATE_KEY}" | base64 -d > ${HOME}/.ssh/deploy.id_rsa
3434
chmod 700 ${HOME}/.ssh/deploy.id_rsa
3535
rsync -azL -e "ssh -i ${HOME}/.ssh/deploy.id_rsa -o StrictHostKeyChecking=no" --delete --progress _site/ [email protected]:/data/website/htdocs/
36+
- name: Update Docker container
37+
shell: bash
38+
env:
39+
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
40+
run: |
41+
ssh -i ${HOME}/.ssh/deploy.id_rsa -o StrictHostKeyChecking=no [email protected] << EOF
42+
docker pull ghcr.io/munichmakerlab/website:main
43+
systemctl restart docker-website.service
44+
EOF

0 commit comments

Comments
 (0)