ci: clean up after image builds and demo wipes #237
Reference in New Issue
Block a user
No description provided.
Delete Branch "chore/ci-self-cleanup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What & why
The CI runners are filling up. Runner 65 (
ubuntu-latest) is out of disk right now: every recenttask it took died at checkout with
No space left on device(e.g. this repo's run 459buildandrun 464
analysis, 2026-11-02).The build job runs docker on the runner host's daemon (mounted socket), so whatever it leaves is
permanent. Each run left four tagged images (
website-appandwebsite-bot,:latestand:sha-<7>), and each newer:latestturned the last one into another permanent:sha-image.build-images.yml→build: newif: always()step after the pushes. It removes this run'sfour tags, which are in the registry already, and caps BuildKit's cache at 5 GB
(
--keep-storage, falling back to its newer name--reserved-space). It never fails the job.BuildKit keeps the layer cache apart from the images, so builds stay cached.
demo-wipe.yml: new finalif: always()step,docker image prune -f. The two-hourlypull leaves the replaced image dangling on the demo host. Dangling images only; nothing tagged
or in use is touched.
build-images.yml→deploy(uom-deploy-runner) is deliberately untouched: that host is onanother network and is not to be changed or cleaned (org lead).
Companion PRs: runicgateway.com (same build fix + deploy prune), link / installer / Rust-Link
(rust-cache), docs (DEMO_MODE §7.3 step 7).
How it was tested
main, the wipe on its next 2-hourslot. The first real proof is that run's new step log, plus
docker imageson the build hostshowing no
website-app/website-bottags left behind.Checklist
AI-assisted contributions (required)
Claude Code (Claude Opus 5.5). I have reviewed and understandevery change, and take responsibility for it. AI-authored commits are
marked with a
Co-Authored-By/Assisted-Bytrailer.License
(GNU GPL v3.0 or later), and I have the right to contribute it.
🤖 Generated with Claude Code
https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY