fix(ci): refine disk breakdown diagnostics with sh -c to expand wildcards correctly
Some checks failed
Build & Deploy / 🧪 QA (push) Has been cancelled
Build & Deploy / 🏗️ Build (push) Has been cancelled
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
Build & Deploy / 🔍 Prepare (push) Has been cancelled

This commit is contained in:
2026-05-28 17:13:12 +02:00
parent 3a7100d8b0
commit fb1e7efd30

View File

@@ -70,7 +70,11 @@ jobs:
docker rm -f $containers || true
fi
echo "=== Disk Space Usage Breakdown under Host Volume ==="
docker run --rm -v /:/host-root alpine du -sh /host-root/mnt/HC_Volume_104796416/* | sort -rh | head -n 20 || true
docker run --rm -v /:/host-root alpine sh -c "du -sh /host-root/mnt/HC_Volume_104796416/* /host-root/mnt/HC_Volume_104796416/.[!.]* | sort -rh | head -n 30" || true
echo "=== Largest Files on Host Volume ==="
docker run --rm -v /:/host-root alpine sh -c "find /host-root/mnt/HC_Volume_104796416 -type f -size +100M -exec du -sh {} + | sort -rh | head -n 30" || true
echo "=== Host Docker Directory Size ==="
docker run --rm -v /:/host-root alpine sh -c "du -sh /host-root/mnt/HC_Volume_104796416/docker/* | sort -rh | head -n 30" || true
echo "Purging old build layers, unused volumes and images..."
docker builder prune -a -f || true
docker volume prune -f || true