From 3a309007570e944c60692a20d4dc485d1161d371 Mon Sep 17 00:00:00 2001 From: Murtadha Date: Sun, 14 Jul 2024 01:07:51 -0400 Subject: [PATCH] Prune unused docker images, that consume resources --- .woodpecker.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index b22b096..f08234a 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -41,6 +41,7 @@ pipeline: - docker stop frontend || true - docker rm frontend || true - docker run -d --name frontend -p 5173:80 frontend:${CI_COMMIT_SHA} - - docker system prune -f # Clean up unused containers and images + - docker image prune -f # Remove dangling images + - docker system prune -f --volumes # Clean up unused containers, images, and volumes when: branch: master