fix(ci): remove broken maintenance step and clean up prepare
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 23s
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 / 🧪 QA (push) Has been cancelled
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 23s
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 / 🧪 QA (push) Has been cancelled
This commit is contained in:
@@ -37,46 +37,6 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
image: catthehacker/ubuntu:act-latest
|
image: catthehacker/ubuntu:act-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
- name: 🧹 Maintenance (High Density Cleanup)
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
echo "=== System Disk Usage ==="
|
|
||||||
df -h || true
|
|
||||||
echo "=== Tool Cache Usage ==="
|
|
||||||
du -sh /opt/hostedtoolcache/* || true
|
|
||||||
du -sh /opt/hostedtoolcache/.[!.]* || true
|
|
||||||
echo "Purging old tool caches..."
|
|
||||||
rm -rf /opt/hostedtoolcache/* || true
|
|
||||||
rm -rf /opt/hostedtoolcache/.[!.]* || true
|
|
||||||
echo "=== Host Disk Usage ==="
|
|
||||||
docker run --rm -v /:/host-root alpine df -h || true
|
|
||||||
echo "=== Host Inode Usage ==="
|
|
||||||
docker run --rm -v /:/host-root alpine df -i || true
|
|
||||||
echo "=== Running Host Containers ==="
|
|
||||||
docker ps --format "table {{.Names}}\t{{.Status}}\t{{.Image}}" || true
|
|
||||||
echo "=== Host Docker Info ==="
|
|
||||||
docker info || true
|
|
||||||
echo "Pruning host Buildkit builder caches aggressively..."
|
|
||||||
for container in $(docker ps --filter "name=buildx_buildkit_builder" --format "{{.Names}}"); do
|
|
||||||
echo "Pruning Buildkit inside container: $container"
|
|
||||||
docker exec -i "$container" buildctl prune --all || true
|
|
||||||
done
|
|
||||||
echo "Removing buildkit builder containers to clear overlay storage..."
|
|
||||||
containers=$(docker ps -a --filter "name=buildx_buildkit_builder" -q)
|
|
||||||
if [ -n "$containers" ]; then
|
|
||||||
docker rm -f $containers || true
|
|
||||||
fi
|
|
||||||
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 "Purging old build layers, unused volumes and images..."
|
|
||||||
docker builder prune -a -f || true
|
|
||||||
docker volume prune -f || true
|
|
||||||
docker system prune -a -f --volumes || true
|
|
||||||
echo "=== System Disk Usage After Prune ==="
|
|
||||||
df -h || true
|
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user