Skip to content

ci: fix release workflow — tags only, GitHub Release, faster arm64 builds#111

Merged
mohit-nagaraj merged 1 commit into
mainfrom
fix/release-workflow
Apr 14, 2026
Merged

ci: fix release workflow — tags only, GitHub Release, faster arm64 builds#111
mohit-nagaraj merged 1 commit into
mainfrom
fix/release-workflow

Conversation

@mohit-nagaraj

Copy link
Copy Markdown
Member

Summary

  • Tags only — workflow now triggers on v* tags only, not on every push to main (was incorrectly building on every merge)
  • GitHub Release — adds a release entry to the Releases tab alongside the GHCR package, matching the CLI repo's approach
  • Faster arm64 builds — adds FROM --platform=$BUILDPLATFORM to the Go builder stage so Go cross-compiles natively instead of running the compiler under QEMU emulation (10-20× speed improvement for arm64)

After merging

Tag all three repos at the same version to publish a unified release:

git tag v0.0.3 && git push origin v0.0.3

This will push ghcr.io/kubeorch/core:v0.0.3 + :latest and create the GitHub Release entry.

Test plan

  • Workflow does NOT trigger on a push to main
  • Workflow triggers on git push origin v*
  • Image appears in GitHub Packages (ghcr.io/kubeorch/core)
  • Release appears in GitHub Releases tab

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request updates the Dockerfile to include the --platform=$BUILDPLATFORM flag in the builder stage for multi-platform support. A review comment identifies that this change could break standard Docker builds without BuildKit, as the variable is not automatically populated, and suggests defining the argument with a default value before the FROM instruction.

Comment thread Dockerfile Outdated
…uild speed

- Trigger only on version tags (v*), not on every push to main
- Add GitHub Release creation so releases appear in the Releases tab
- Push versioned + latest tags to ghcr.io/kubeorch/core
- Add FROM --platform=\$BUILDPLATFORM to builder stage so Go
  cross-compiles natively instead of running under QEMU emulation
  (dramatically faster arm64 builds)

Signed-off-by: Mohit Nagaraj <mohitnagaraj20@gmail.com>
@mohit-nagaraj
mohit-nagaraj merged commit b3d5042 into main Apr 14, 2026
2 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