From 6967ba92dee656673877c6be6109c95973e5913c Mon Sep 17 00:00:00 2001 From: Toshiya Kobayashi Date: Thu, 17 Oct 2024 11:55:23 +0900 Subject: [PATCH] [DROOLS-7638]"docker system prune -f" fails in GHA - Use docker rmi rather than prune because prune could be faulty and slow --- .ci/buildchain-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci/buildchain-config.yaml b/.ci/buildchain-config.yaml index 84c15584b4a..c286104dcd3 100644 --- a/.ci/buildchain-config.yaml +++ b/.ci/buildchain-config.yaml @@ -25,7 +25,7 @@ default: mvn clean install -Dquickly ${{ env.BUILD_MVN_OPTS }} ${{ env.BUILD_MVN_OPTS_UPSTREAM }} after: current: | - docker system prune -f + bash -c "if [ -n \"$(docker images -f dangling=true -q)\" ]; then docker rmi $(docker images -f dangling=true -q); else echo 'No dangling images to remove.'; fi" build: - project: kiegroup/drools