Skip to content

fix: build release images with matching target architecture - #3325

Merged
migmartri merged 1 commit into
chainloop-dev:mainfrom
JeffResc:fix/release-image-arch
Aug 3, 2026
Merged

migmartri merged 1 commit into
chainloop-dev:mainfrom
JeffResc:fix/release-image-arch

Conversation

@JeffResc

@JeffResc JeffResc commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fix the release image build for arm64.

The release config now builds the service binaries and copied plugins for linux_arm64. It also sets goarch on each Docker image entry. This makes GoReleaser use the correct binary set for each image architecture.

Closes #3324

Root Cause

The arm64 Docker images used --platform=linux/arm64, but the Docker build context still received amd64 binaries. The service binaries and copied plugins were only built for linux_amd64. The Docker entries also did not select an architecture-specific artifact set.

Changes

  • Build control-plane for linux_arm64.
  • Build artifact-cas for linux_arm64.
  • Build the copied control-plane plugins for linux_arm64.
  • Set goarch: amd64 or goarch: arm64 on Docker image entries.

Verification

Ran:

goreleaser release --clean --snapshot --skip sign,sbom,publish

Verified that the rebuilt local arm64 images are labeled linux/arm64.

Extracted these binaries from the rebuilt arm64 images and verified each one is ARM aarch64:

  • /control-plane
  • /artifact-cas
  • /plugins/chainloop-plugin-dependency-track
  • /plugins/chainloop-plugin-discord-webhook
  • /plugins/chainloop-plugin-smtp

Review in cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All reported issues were addressed across 1 file

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread .goreleaser.yml
Signed-off-by: Jeff Rescignano <jeffr@defenseunicorns.com>
@JeffResc
JeffResc force-pushed the fix/release-image-arch branch from 57a6367 to a7aacf0 Compare August 3, 2026 15:56
@jiparis
jiparis requested a review from a team August 3, 2026 16:01

@jiparis jiparis 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.

Good catch, thanks for the fix.

@migmartri
migmartri merged commit d5fb6ee into chainloop-dev:main Aug 3, 2026
15 checks passed
@JeffResc
JeffResc deleted the fix/release-image-arch branch August 4, 2026 01:15
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.

arm64 release images contain amd64 service binaries

3 participants