From 562965c827689cc3a2919c0ccd81fe457d4c3abc Mon Sep 17 00:00:00 2001 From: Milian Date: Sun, 6 Oct 2024 19:30:17 +0200 Subject: [PATCH] fix github actions docker images cleanup order --- .github/workflows/jekyll-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/jekyll-deploy.yml b/.github/workflows/jekyll-deploy.yml index 8cde5d2..0126286 100644 --- a/.github/workflows/jekyll-deploy.yml +++ b/.github/workflows/jekyll-deploy.yml @@ -41,7 +41,7 @@ jobs: ssh -i ${HOME}/.ssh/deploy.id_rsa -o StrictHostKeyChecking=no root@saturn.munichmakerlab.de << 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 + docker images | grep ghcr.io/munichmakerlab/website | grep -v main | awk '{print $3}' | xargs docker rmi #remove old images EOF