fix(ci): replace slow du with fast checks and log truncation to prevent runner hang
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:
@@ -69,12 +69,10 @@ jobs:
|
||||
if [ -n "$containers" ]; then
|
||||
docker rm -f $containers || true
|
||||
fi
|
||||
echo "=== Disk Space Usage Breakdown under Host Volume ==="
|
||||
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 "=== Truncating host Docker container log files ==="
|
||||
docker run --rm -v /:/host-root alpine sh -c "truncate -s 0 /host-root/mnt/HC_Volume_104796416/docker/containers/*/*.log" || true
|
||||
echo "=== Fast Host Docker Directories size ==="
|
||||
docker run --rm -v /:/host-root alpine sh -c "du -sh /host-root/mnt/HC_Volume_104796416/docker/overlay2 /host-root/mnt/HC_Volume_104796416/docker/containers /host-root/mnt/HC_Volume_104796416/docker/volumes /host-root/mnt/HC_Volume_104796416/docker/buildkit" || 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