Skip to content

fix(ci): annotate the image index with its description - #27

Merged
dan-petty merged 1 commit into
mainfrom
fix/19-index-annotations
Nov 20, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/19-index-annotations

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Give the manifest list the OCI annotations, so GHCR shows the description.

  • GitHub reads the description of a multi-arch image from the annotations of its manifest list. The publish job gave the list none; the package page shows no description (2026-11-20).
  • The publish job's metadata step sets DOCKER_METADATA_ANNOTATIONS_LEVELS=index. Its annotations output gives each OCI key as index:<key>=<value> (metadata-action v6.2.0 src/main.ts:77-86). The index step passes each line as --annotation.
  • The latest step 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:latest shows the annotations, and the package page shows the description.

Closes #19

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 dan-petty added type/bug Type bug: the code does not do what it must scope/ci GitHub Actions workflows: build, scan, push and publish labels Nov 20, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 20, 2026 18:48
@dan-petty
dan-petty merged commit 860e1b2 into main Nov 20, 2026
8 checks passed
@dan-petty
dan-petty deleted the fix/19-index-annotations branch November 20, 2026 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/ci GitHub Actions workflows: build, scan, push and publish type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(ci): annotate the image index with its description

1 participant