From 30153e0da32f4d36ab4dab9a4515e5282231e88a Mon Sep 17 00:00:00 2001 From: Robert Sturla Date: Fri, 12 Jan 2024 00:30:13 +0000 Subject: [PATCH] Remove Docker image after extract --- .github/actions/scan-image/action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/actions/scan-image/action.yml b/.github/actions/scan-image/action.yml index a3fdb1c9..64e90ccf 100644 --- a/.github/actions/scan-image/action.yml +++ b/.github/actions/scan-image/action.yml @@ -27,6 +27,7 @@ runs: id=$(docker create $DATABASE_REF /bin/true) docker cp $id:/matcher.db.tar.gz /tmp/clair/matcher.db.tar.gz docker rm $id + docker rmi $DATABASE_REF tar -xvf /tmp/clair/matcher.db.tar.gz -C .clair/ rm -rf .clair/matcher.db.tar.gz /tmp/clair/