From a1a10d284f6230d167901eb1b743dee57520c290 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sun, 18 Aug 2024 16:56:39 +0200 Subject: [PATCH] Add prune-cache job --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 2e85c0e..80084bd 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,13 @@ help: - @echo "make help Displays help" - @echo " build Builds the image" - @echo " upload Builds and uploads the image" + @echo "make help Displays help" + @echo " build Builds the image" + @echo " upload Builds and uploads the image" + @echo " prune-cache Prunes the entire build cache" build: docker buildx build -t git.staropensource.de/staropensource/actions-docker:latest -f Dockerfile . docker buildx build -t git.staropensource.de/staropensource/actions-docker:java -f Dockerfile.java . upload: build docker push git.staropensource.de/staropensource/actions-docker:latest docker push git.staropensource.de/staropensource/actions-docker:java +prune-cache: + docker buildx prune -af