Skip to content

feat: Add multi-architecture Docker build support and push build Docker#24

Open
sanjay7178 wants to merge 3 commits intokubeslice:masterfrom
sanjay7178:feat/multi-arch-build
Open

feat: Add multi-architecture Docker build support and push build Docker#24
sanjay7178 wants to merge 3 commits intokubeslice:masterfrom
sanjay7178:feat/multi-arch-build

Conversation

@sanjay7178
Copy link
Copy Markdown

@sanjay7178 sanjay7178 commented Aug 1, 2025

fixes : #23

Improvements

Dockerfile

  • Added ARG TARGETOS and ARG TARGETARCH build arguments for cross-compilation
  • Modified Go build command to use platform-specific compilation: CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH}
  • Simplified the pkg/imports builds in dockerfile with go mod download

docker-push-multiarch.yaml

  • Added .github/workflows/docker-push-multiarch.yaml for building and pushing multi-architecture images to docker hub

ci.yml

  • Added docker-multiarch-build job to validate multi-arch builds on every PR and workflows support linux/amd64 and linux/arm64 platforms using Docker Buildx

Testing

I ensured this pr was tested via this github actions run for multiarch build https://github.com/sanjay7178/cmd-nsmgr/actions/runs/16680645623

…prove build steps

Signed-off-by: sanjay7178 <saisanjay7660@gmail.com>
…I tests

Signed-off-by: sanjay7178 <saisanjay7660@gmail.com>
Signed-off-by: sanjay7178 <saisanjay7660@gmail.com>
@sanjay7178 sanjay7178 changed the title feat: Add multi-architecture Docker build support and push build Docker build feat: Add multi-architecture Docker build support and push build Docker Aug 1, 2025
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.

Feature: Add Multi-Architecture Docker Build Support

1 participant