Free runner disk before Docker publish
The multi-platform Docker publish job can exhaust the hosted runner disk before BuildKit finishes, causing ENOSPC failures during log writing and cleanup. Remove unused hosted toolchains and stale local Docker data before QEMU and Buildx setup so release builds have more room without changing Docker image inputs or install scripts.
Alessandro committed
May 15, 2026 at 19:27 UTC
6664fc7f38867d0e995d4eed7be2cb46932b87f7
1 file changed
+21
.github/workflows/docker-publish.yml
+21
@@ -108,6 +108,27 @@ jobs:
108
exit 1
109
fi
110
111
+ - name: Free runner disk space
112
+ run: |
113
+ echo "Disk before cleanup:"
114
+ df -h /
115
+ docker system df || true
116
+
117
+ sudo rm -rf \
118
+ /opt/az \
119
+ /opt/ghc \
120
+ /opt/hostedtoolcache/CodeQL \
121
+ /usr/local/.ghcup \
122
+ /usr/local/lib/android \
123
+ /usr/local/share/boost \
124
+ /usr/share/dotnet
125
+ sudo apt-get clean
126
+ docker system prune -af --volumes || true
127
+
128
+ echo "Disk after cleanup:"
129
+ df -h /
130
+ docker system df || true
131
+
132
- name: Set up QEMU
133
uses: docker/setup-qemu-action@v3
134