From fbffaa19d866e209e8e056ec4c8dace0d56143c5 Mon Sep 17 00:00:00 2001 From: Milian Tomzig Date: Sun, 6 Oct 2024 17:26:09 +0200 Subject: [PATCH] update action to restart website container with latest image --- .github/workflows/jekyll-deploy.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/jekyll-deploy.yml b/.github/workflows/jekyll-deploy.yml index 3be8513..e29dd38 100644 --- a/.github/workflows/jekyll-deploy.yml +++ b/.github/workflows/jekyll-deploy.yml @@ -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