Skip to content

DRU-774 -- Lead each template image tag with its label - #72

Merged
czpython merged 1 commit into
mainfrom
readable-template-tags
Oct 11, 2026
Merged

czpython merged 1 commit into
mainfrom
readable-template-tags

Conversation

@czpython

Copy link
Copy Markdown
Owner

A template image tag now starts with the caller's label, then the content hash: ghcr.io/acme/sandbox-templates:site-builder-build-3fa9c1d2e4b7, not ghcr.io/acme/sandbox-templates:3fa9c1d2e4b7. The registry then shows which app each template belongs to.

Drukbox lowercases the label and replaces every run of other characters with a hyphen. It keeps at most 115 characters, so the tag stays inside the 128-character limit. A template with no label keeps the hash alone.

The hash still names the build, so a repeated build of the same base and script gets the same tag. Template reuse is unchanged: provider, base image reference, and script hash. Two templates that share a script and base carry the label of the request that created the record.

@czpython czpython changed the title Lead each template image tag with its label DRU-774 -- Lead each template image tag with its label Oct 11, 2026
@czpython
czpython force-pushed the readable-template-tags branch from eb17294 to 861ad27 Compare October 11, 2026 09:37
@czpython
czpython merged commit 8325e0e into main Oct 11, 2026
6 checks passed
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.

1 participant