Skip to content

Commit

Permalink
adapt action - add cleanup for images
Browse files Browse the repository at this point in the history
  • Loading branch information
NanoMil committed Oct 6, 2024
1 parent 3cc765e commit 4f1e001
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/jekyll-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
ssh -i ${HOME}/.ssh/deploy.id_rsa -o StrictHostKeyChecking=no [email protected] << EOF
set -x # Enable command echoing
docker pull ghcr.io/munichmakerlab/website:main
docker images | grep ghcr.io/munichmakerlab/website | grep -v main | awk '{print $3}' | xargs docker rmi #remove old images
systemctl restart docker-website.service
systemctl status docker-website.service
EOF

0 comments on commit 4f1e001

Please sign in to comment.