From 852e1bde51600a08fc17f557252aa9f8c8479a4e Mon Sep 17 00:00:00 2001 From: continuist Date: Sun, 21 Sep 2025 13:53:07 -0400 Subject: [PATCH] Add better handling to safe storage pruning step --- .forgejo/workflows/ci.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index a95fb85..de51759 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -210,11 +210,20 @@ jobs: - name: Safe storage pruning run: | - # Stop and remove any running containers first - podman --remote ps -aq | xargs -r podman --remote rm -f 2>/dev/null || true - # Then prune system + set -x # Enable debug output + # List and remove any running containers first + echo "=== Removing running containers ===" + podman --remote ps -aq | while read -r container; do + echo "Removing container: $container" + podman --remote rm -f "$container" || echo "Failed to remove container $container" + done + + echo "=== Pruning system ===" podman --remote system prune -f + echo "=== Storage status after pruning ===" + podman --remote system df + - name: Build frontend container image run: | # Create temp directory on larger filesystem