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
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user