From acd86099e5ef6ce7747a02916098831c1e98fcd2 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Mon, 2 Feb 2026 14:49:15 +0100 Subject: [PATCH] ci: add proactive docker cleanup and tighten prune filters --- .gitea/workflows/deploy.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 2f7e0ac5..528ae4f3 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -42,6 +42,13 @@ jobs: container: image: catthehacker/ubuntu:act-latest steps: + - name: ๐Ÿงน Cleanup disk space + shell: bash + run: | + echo "๐Ÿงน Cleaning up dangling Docker images and stale build cache..." + docker system prune -f --filter "until=24h" + docker image prune -f --filter "dangling=true" + - name: Checkout repository uses: actions/checkout@v4 with: @@ -382,7 +389,7 @@ jobs: docker compose -p "$PROJECT_NAME" --env-file "$ENV_FILE" pull echo "โ†’ Starting containers..." docker compose -p "$PROJECT_NAME" --env-file "$ENV_FILE" up -d --remove-orphans - docker system prune -f --filter "until=168h" + docker system prune -f --filter "until=24h" echo "โ†’ Waiting 15s for warmup..." sleep 15 echo "โ†’ Container status:"