Skip to content

feat(workflows): docker-build with a layer cache that outlives the runner - #80

Merged
rldyourmnd merged 3 commits into
mainfrom
feat/docker-build-with-a-registry-cache
Sep 1, 2026
Merged

feat(workflows): docker-build with a layer cache that outlives the runner#80
rldyourmnd merged 3 commits into
mainfrom
feat/docker-build-with-a-registry-cache

Conversation

@rldyourmnd

Copy link
Copy Markdown
Contributor

New reusable build workflow: registry layer cache ({image}/buildcache, free on ghcr today) or type=gha, one call for hosted and docker-capable fleet runners, digest output. Full registration: tool pins, cache-contract producer (no input — no cache), routed capability, sha-pinned example, regenerated docs; validate_all core OK locally.

https://claude.ai/code/session_01LsGid6U5RrQdFvJmvYdGCF

@github-actions github-actions Bot added the ci label Sep 1, 2026
Comment thread .github/workflows/docker-build.yml
@github-actions github-actions Bot removed the ci label Sep 1, 2026
…nner

Disposable runners rebuild every layer from scratch: the catalogue had a
Trivy scan for containers and no way to build one. docker-build.yml puts
the BuildKit cache in a registry ref ({image}/buildcache by default, free
storage on ghcr.io today) or in the Actions cache, shared across runs,
repositories and runner kinds; hosted and docker-capable fleet classes use
the same call. Pins registered in the tool registry, the cache-contract
declares build-push-action as an explicit no-input-no-cache producer, the
example pins by sha and names its runner, generated docs follow.

The fleet-local zot variant of the cache ref stays open in the estate
ledger: writing buildcache to the member registry needs broker-minted
credentials, which is fleet-side work, and ghcr serves the pattern today.

Claude-Session: https://claude.ai/code/session_01LsGid6U5RrQdFvJmvYdGCF
@rldyourmnd
rldyourmnd force-pushed the feat/docker-build-with-a-registry-cache branch from cef35b3 to 162cc7e Compare September 1, 2026 08:04
@github-actions github-actions Bot added ci and removed ci labels Sep 1, 2026
@github-actions github-actions Bot added ci and removed ci labels Sep 1, 2026
zizmor's permissions rule wants the reason next to the grant, which is the
house style everywhere else in this catalogue.

Claude-Session: https://claude.ai/code/session_01LsGid6U5RrQdFvJmvYdGCF
@github-actions github-actions Bot added ci and removed ci labels Sep 1, 2026
@rldyourmnd
rldyourmnd merged commit 15b9b2b into main Sep 1, 2026
28 checks passed
@rldyourmnd
rldyourmnd deleted the feat/docker-build-with-a-registry-cache branch September 1, 2026 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants