Repository navigation
fix(ci): annotate the image index with its description - #27
Merged
Merged
Conversation
The GHCR page of the package showed no description. GitHub reads the description of a multi-arch image from the annotations of its manifest list, and the publish job gave the list no annotation; only each platform image had the label. - The metadata step of the publish job sets DOCKER_METADATA_ANNOTATIONS_LEVELS=index, so its annotations output gives each OCI key (description, source, licenses and the others) as index:<key>=<value>. - The step that makes the manifest list passes each line to `docker buildx imagetools create` as --annotation. - The latest step copies one source with no annotation, so buildx reuses the bytes of the list (util/imagetools/create.go) and the digest check stays. Closes #19
dan-petty
marked this pull request as ready for review
November 20, 2026 18:48
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Give the manifest list the OCI annotations, so GHCR shows the description.
DOCKER_METADATA_ANNOTATIONS_LEVELS=index. Itsannotationsoutput gives each OCI key asindex:<key>=<value>(metadata-action v6.2.0src/main.ts:77-86). The index step passes each line as--annotation.lateststep copies one source with no annotation. buildx then reuses the source bytes (util/imagetools/create.go:105), so the digest check stays.Proof after merge:
skopeo inspect --raw docker://ghcr.io/dan-petty/devtools:latestshows the annotations, and the package page shows the description.Closes #19