Skip to content

Commit 4f1e001

Browse files
committed
adapt action - add cleanup for images
1 parent 3cc765e commit 4f1e001

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/jekyll-deploy.yml

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
ssh -i ${HOME}/.ssh/deploy.id_rsa -o StrictHostKeyChecking=no [email protected] << EOF
4242
set -x # Enable command echoing
4343
docker pull ghcr.io/munichmakerlab/website:main
44+
docker images | grep ghcr.io/munichmakerlab/website | grep -v main | awk '{print $3}' | xargs docker rmi #remove old images
4445
systemctl restart docker-website.service
4546
systemctl status docker-website.service
4647
EOF

0 commit comments

Comments
 (0)