Commit ffedeff
GHA: targeted cleanup — preserve BuildKit ccache across runs
- Replace nuclear 'docker system prune -af' and 'docker volume prune -af'
with targeted removal of only the image we just built
- Add clean-gcc/clean-clang Makefile targets that remove specific image
from both linuxkit cache and docker
- Add BuildKit cache pruning with configurable quota via BUILDX_KEEP_STORAGE_MB
env var (defaults to 20000 MB) to prevent unbounded disk growth
- Print BuildKit disk usage before pruning for diagnostics
- Use buildctl inside linuxkit-builder container for cache management
- Switch pr-build.yml from pull_request_target to pull_request
- Remove unnecessary Docker Hub login from PR builds
Signed-off-by: Mikhail Malyshev <mike.malyshev@gmail.com>
(cherry picked from commit 04d9224)1 parent ac1bd89 commit ffedeff
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
88 | 91 | | |
89 | 92 | | |
90 | 93 | | |
| |||
93 | 96 | | |
94 | 97 | | |
95 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
96 | 103 | | |
97 | 104 | | |
98 | | - | |
| 105 | + | |
0 commit comments