Skip to content

buildx: add index annotation conversion helper - #1332

Merged
crazy-max merged 1 commit into
docker:mainfrom
crazy-max:buildx-to-index-annotations
Sep 18, 2026
Merged

crazy-max merged 1 commit into
docker:mainfrom
crazy-max:buildx-to-index-annotations

Conversation

@crazy-max

@crazy-max crazy-max commented Sep 18, 2026

Copy link
Copy Markdown
Member

This adds ImageTools.toIndexAnnotation() to convert annotations to index scope when assembling multi-platform images. It replaces recognized scope prefixes and their platform selectors with index:, preserving the annotation key and value. Conversion is explicit and doesn't change ImageTools.create() behavior.

The helper extracts logic currently duplicated in github-builder build workflow and bake workflow, allowing both to use the same implementation.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max
crazy-max marked this pull request as ready for review September 18, 2026 10:11
@crazy-max
crazy-max merged commit 9855200 into docker:main Sep 18, 2026
118 checks passed
@crazy-max
crazy-max deleted the buildx-to-index-annotations branch September 18, 2026 10:11
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