Replace the chained inspect||create||inspect with explicit steps:
register builder metadata without --bootstrap (create errors fail the
job), bootstrap with a single logged retry for concurrent creation, and
verify the GC policy reported by the running BuildKit daemon. A builder
created by this job without the expected policy fails the job; an
existing unmigrated builder gets a warning pointing to the manual
migration. The temporary buildkitd config is removed on exit. Existing
containers and state volumes are never recreated or removed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pass a buildkitd config (reservedSpace 10GB, maxUsedSpace 20GB,
minFreeSpace 50GB) via --buildkitd-config when the multiarch builder is
created. Existing builders are reused unchanged and never recreated; a
non-fatal warning flags builders without the managed config. Document
the one-time manual migration, verification, DinD image retention
proposal and rollback in docs/buildkit-gc.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>