From c6af2597543a292e37806c22751267d8f982ce75 Mon Sep 17 00:00:00 2001 From: Svetlana Perekrestova Date: Tue, 24 Mar 2026 16:27:57 +0100 Subject: [PATCH] fix: prune dangling images immediately on each deploy Replace 168h-filtered prune commands with immediate cleanup. Add post-build prune to clear the image replaced by each new build. Prevents disk exhaustion from accumulating 8.5 GB dangling images. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/ci-tests.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index 21f62a3..3144369 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -94,7 +94,8 @@ jobs: set -e cd ~/pillchecker-api git pull origin main - docker image prune -af --filter "until=168h" - docker builder prune -af --filter "until=168h" + docker image prune -f + docker builder prune -af --filter "until=24h" docker compose up -d --build + docker image prune -f echo "Deploy complete"