fix(ci): add --provenance=false to all docker builds to fix GHCR push#628
Open
rsatal wants to merge 1 commit into
Open
fix(ci): add --provenance=false to all docker builds to fix GHCR push#628rsatal wants to merge 1 commit into
rsatal wants to merge 1 commit into
Conversation
BuildKit (DOCKER_BUILDKIT=1) generates OCI provenance attestation manifests by default. GHCR fails to verify the referenced blobs on push, producing 'unknown blob' errors. This is the root cause of the 3 consecutive push failures for konk-service after merging PR #625. The other images (konk, konk-app, konk-provision) escaped because their layers already existed in GHCR from prior runs. The konk-service binary is new and unique, so its attestation blob is consistently rejected. Add --provenance=false to all four build targets to suppress OCI attestation manifests and produce plain Docker v2 manifests that GHCR handles reliably.
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.
Problem
Run #35 failed 3 consecutive times (all previous runs since PR #584 succeeded):
Root Cause
DOCKER_BUILDKIT=1 docker buildon Docker 25+ generates an OCI image index manifest that includes provenance attestation blobs. GHCR fails to verify these referenced blobs on push, producingunknown bloberrors.The most likely trigger is a Docker version bump on the
ubuntu-latestrunner between the last successful run (#34, May 20) and run #35 (Jun 11), which changed BuildKit's default manifest generation behaviour.Reference: docker/buildx#1509
Fix
Add
--provenance=falseto all fourdocker buildtargets in the Makefile. This suppresses OCI attestation manifests and produces plain Docker v2 manifests that GHCR handles reliably. This is the documented fix for this class of GHCR push failure.Related