Repository navigation
fix(ci): align docker-buildx with zookeeper-operator baseline for multi-arch signing - #102
Merged
Merged
Conversation
…ti-arch signing
The Release Image job's 'Sign operator image' step failed with exit code 2
during the 0.4.0-dev tag push release workflow (run #27288833153).
Root cause: docker-buildx was missing the Dockerfile.cross generation step
that injects --platform=${BUILDPLATFORM} into the builder stage FROM line.
Without this, buildx multi-arch builds may produce an incomplete or
malformed docker-digests.json metadata file, causing the sign-image composite
action's jq parse to fail.
Changes:
- Add sed command to generate Dockerfile.cross with --platform=${BUILDPLATFORM}
- Use Dockerfile.cross instead of Dockerfile for the buildx build
- Hardcode docker-digests.json as metadata file (matching zookeeper-operator)
- Remove unused BUILDX_METADATA_FILE variable
- Clean up Dockerfile.cross after build
Aligns with zookeeper-operator baseline (the reference 0.4.0-dev release).
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
The Release Image job's Sign operator image step failed with exit code 2 during the 0.4.0-dev tag push release workflow (run #27288833153). All other 11 jobs passed successfully.
Failure chain:
Root Cause
docker-buildxwas missing theDockerfile.crossgeneration step that injects--platform=${BUILDPLATFORM}into the builder stage FROM line. Without this, buildx multi-arch builds may produce an incomplete or malformeddocker-digests.jsonmetadata file, causing the sign-image composite action'sjqparse to fail.Changes
sedcommand to generateDockerfile.crosswith--platform=${BUILDPLATFORM}Dockerfile.crossinstead ofDockerfilefor the buildx builddocker-digests.jsonas metadata file (matching zookeeper-operator)BUILDX_METADATA_FILEvariableDockerfile.crossafter buildVerification
- Aligns with zookeeper-operator baseline (the reference 0.4.0-dev release)Diff against zookeeper-operator
docker-buildxtarget: zero difference.