From 2ebbbb03271bcffbce04f37db9645d8a58a19cb8 Mon Sep 17 00:00:00 2001 From: Ruairidh MacLeod Date: Wed, 19 Jun 2024 13:43:54 +0100 Subject: [PATCH] ensure trivy image is retained --- .github/workflows/main.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index f7467fe..1b0e485 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -37,6 +37,7 @@ jobs: uses: jlumbroso/free-disk-space@main with: tool-cache: true + docker-images: false - name: build image if: env.SKIP == '0' run: | @@ -55,7 +56,7 @@ jobs: set -euxo pipefail df -h docker builder prune -a -f - # docker rmi -f $(docker image ls -a | grep -E "(node|debian|moby|ubuntu|alpine)" | awk 'NR>1 {print $3}') + docker rmi -f $(docker image ls -a | grep -E "(node|debian|moby|ubuntu|alpine)" | awk 'NR>1 {print $3}') df -h # debug