Skip to content

fix(ci): align docker-buildx with zookeeper-operator baseline for multi-arch signing - #102

Merged
whg517 merged 1 commit into
zncdatadev:mainfrom
whg517:release-0.4
Jun 13, 2026
Merged

whg517 merged 1 commit into
zncdatadev:mainfrom
whg517:release-0.4

Conversation

@whg517

@whg517 whg517 commented Jun 12, 2026

Copy link
Copy Markdown
Member

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:

Release Image
  ├─ Build and push operator → ✅ success
  └─ Sign operator image     → ❌ exit code 2

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

Verification

- Aligns with zookeeper-operator baseline (the reference 0.4.0-dev release)

Diff against zookeeper-operator docker-buildx target: zero difference.

…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).
@whg517
whg517 merged commit 9916599 into zncdatadev:main Jun 13, 2026
8 checks passed
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