Skip to content

Commit 562965c

Browse files
committed
fix github actions docker images cleanup order
1 parent 4f1e001 commit 562965c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/jekyll-deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +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
4544
systemctl restart docker-website.service
4645
systemctl status docker-website.service
46+
docker images | grep ghcr.io/munichmakerlab/website | grep -v main | awk '{print $3}' | xargs docker rmi #remove old images
4747
EOF

0 commit comments

Comments
 (0)