From dbcdaf9278a6dfda4604239447f9b0092bc54946 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=B6rdle=20Bot?= Date: Thu, 4 Dec 2025 21:38:04 +0100 Subject: [PATCH] Enhance deployment script: add cleanup for build cache alongside old images --- scripts/deploy.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 3615514..70e9039 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -88,10 +88,13 @@ docker compose build echo "๐Ÿ”„ Restarting with new image (minimal downtime)..." docker compose up -d -# Clean up old images +# Clean up old images and build cache echo "๐Ÿงน Cleaning up old images..." docker image prune -f +echo "๐Ÿงน Cleaning up build cache..." +docker builder prune -f + echo "โœ… Deployment complete!" echo "" echo "๐Ÿ“Š Showing logs (Ctrl+C to exit)..."