Skip to content

build: create manifests with buildx imagetools - #20229

Merged
SuperQ merged 3 commits into
prometheus:mainfrom
SoloJacobs:common
Nov 2, 2026
Merged

SuperQ merged 3 commits into
prometheus:mainfrom
SoloJacobs:common

Conversation

@SoloJacobs

@SoloJacobs SoloJacobs commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

docker build now attaches provenance attestations, so each per-arch image
is pushed as an OCI index. docker manifest create refuses indexes as
sources, so no multi-arch tags get published.

It seems that GitHub have udpated the base ubuntu image.

This affected a recent Alertmanager release too.
https://github.com/prometheus/alertmanager/actions/runs/40851566811

Which issue(s) does the PR fix:

None

Release notes for end users (ALL commits must be considered).

NONE

docker build now attaches provenance attestations, so each per-arch image
is pushed as an OCI index. docker manifest create refuses indexes as
sources, so no multi-arch tags get published.

Signed-off-by: Solomon Jacobs <[email protected]>
@SoloJacobs
SoloJacobs requested a review from a team as a code owner October 29, 2026 14:50
@SoloJacobs
SoloJacobs requested a review from ArthurSens October 29, 2026 14:50
@SoloJacobs

Copy link
Copy Markdown
Contributor Author

The docker recipes run in a single shell loop, so only the exit status of
the last command was reported. Failed manifest pushes went unnoticed while
the publish job stayed green.

Signed-off-by: Solomon Jacobs <[email protected]>
@SoloJacobs

Copy link
Copy Markdown
Contributor Author

Failure looks like this:

ghcr.io/prometheus/prometheus-linux-amd64:main is a manifest list
quay.io/prometheus/prometheus-linux-amd64:main is a manifest list
quay.io/prometheus/prometheus-linux-amd64:main-busybox is a manifest list
quay.io/prometheus/prometheus-linux-amd64:main-distroless is a manifest list

The good job logs Created manifest list quay.io/prometheus/prometheus:main (and -busybox, -distroless) at that step instead.

@SoloJacobs

Copy link
Copy Markdown
Contributor Author

I added a second commit here to address the green jobs.

@SoloJacobs SoloJacobs changed the title Makefile.common: create manifests with buildx imagetools build: create manifests with buildx imagetools Oct 29, 2026

@SuperQ SuperQ left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevermind

Comment thread Makefile.common Resolved
@SoloJacobs
SoloJacobs requested a review from SuperQ October 30, 2026 18:28
@SuperQ
SuperQ requested a review from roidelapluie October 30, 2026 20:47
@SuperQ
SuperQ merged commit b0c3a30 into prometheus:main Nov 2, 2026
39 checks passed
roidelapluie added a commit that referenced this pull request Nov 3, 2026
build: create manifests with buildx imagetools (#20229)
computedocean pushed a commit to computedocean/prometheus that referenced this pull request Nov 9, 2026
* Makefile.common: create manifests with buildx imagetools

docker build now attaches provenance attestations, so each per-arch image
is pushed as an OCI index. docker manifest create refuses indexes as
sources, so no multi-arch tags get published.

Signed-off-by: Solomon Jacobs <[email protected]>

* Makefile.common: fail docker targets on the first error

The docker recipes run in a single shell loop, so only the exit status of
the last command was reported. Failed manifest pushes went unnoticed while
the publish job stayed green.

Signed-off-by: Solomon Jacobs <[email protected]>

* Revert "Makefile.common: fail docker targets on the first error"

This reverts commit d4ff4e8.

Signed-off-by: Solomon Jacobs <[email protected]>

---------

Signed-off-by: Solomon Jacobs <[email protected]>
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