Skip to content

fix(build): disable BuildKit attestations to fix multi-arch manifest creation#242

Merged
JesperTerkelsen merged 1 commit intomainfrom
fix/disable-buildx-attestations
Feb 19, 2026
Merged

fix(build): disable BuildKit attestations to fix multi-arch manifest creation#242
JesperTerkelsen merged 1 commit intomainfrom
fix/disable-buildx-attestations

Conversation

@montabot
Copy link
Contributor

Summary

  • Adds BUILDX_NO_DEFAULT_ATTESTATIONS=1 env var and sbom: false to the build step in component-build.yml
  • Fixes docker manifest create failing with "<image>-amd64 is a manifest list" error

Problem

BuildKit v0.26.3+ (shipped with buildx v0.31.1 on ubuntu-24.04 runners) generates attestation manifests by default, even when provenance: false is set. This turns each single-platform image push into a manifest list (containing the image + attestation manifest), which causes docker manifest create to fail because you can't nest manifest lists.

Example failure: https://github.com/monta-app/service-ocpp/actions/runs/22174445891/job/64119854148

Test plan

  • Re-run a deploy on service-ocpp after merging to verify the multi-arch manifest step succeeds

🤖 Generated with Claude Code

…creation

BuildKit v0.26.3+ generates attestation manifests by default, which
turns single-platform image pushes into manifest lists. This causes
`docker manifest create` to fail with "is a manifest list" error
since you can't nest manifest lists.

Setting `provenance: false` alone is insufficient with newer BuildKit.
Adding `BUILDX_NO_DEFAULT_ATTESTATIONS=1` and `sbom: false` ensures
each per-arch image is pushed as a plain single-platform image.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@JesperTerkelsen
Copy link
Member

I might not agree here -lets figure out if this is a real fix or not

@JesperTerkelsen JesperTerkelsen merged commit 54d65d5 into main Feb 19, 2026
1 check passed
@JesperTerkelsen JesperTerkelsen deleted the fix/disable-buildx-attestations branch February 19, 2026 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants