chore: implement nuclear runner cleanup to solve no space left on device
All checks were successful
Build & Deploy / 🔍 Prepare (push) Successful in 8s
Build & Deploy / 🏗️ Build (push) Successful in 13m17s
Build & Deploy / 🚀 Deploy (push) Successful in 32s
Build & Deploy / 🩺 Smoke Test (push) Successful in 5s
Build & Deploy / 🔔 Notify (push) Successful in 3s

This commit is contained in:
2026-04-12 11:04:46 +02:00
parent 7ec82027a8
commit 9399be3ea9

View File

@@ -154,16 +154,27 @@ jobs:
run: |
echo "${{ secrets.REGISTRY_PASS }}" | docker login registry.infra.mintel.me -u "${{ secrets.REGISTRY_USER }}" --password-stdin
- name: 🧹 Clean runner (Extreme)
- name: 🧹 Nuclear Runner Cleanup
run: |
echo "Disk space before prune:"
echo "Disk space before nuclear prune:"
df -h
# Massive cleanup of pre-installed runner software to free up ~5GB+
# These are standard on VM-based runners and often unnecessary
sudo rm -rf /usr/share/dotnet || true
sudo rm -rf /usr/local/lib/android || true
sudo rm -rf /opt/ghc || true
sudo rm -rf /opt/hostedtoolcache/CodeQL || true
# Comprehensive Docker purge
docker system prune -af --volumes
docker builder prune -af
docker buildx prune -af
# Completely remove build history and artifacts on the runner
# Clean temp build artifacts
rm -rf /tmp/docker-actions-toolkit-* || true
echo "Disk space after prune:"
echo "Disk space after nuclear prune:"
df -h
continue-on-error: true