You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(ci): Enable multi-arch Docker image builds and conditional login (#160)
* feat(ci): Enable multi-architecture Docker image builds and conditional login
This change enhances our Docker image building process within the GitHub Actions workflow by:
Introducing Multi-Architecture Support:
The workflow now builds Docker images for multiple CPU architectures (currently configured for linux/amd64 and linux/arm64 via the PLATFORMS environment variable).
This allows our images to run natively on a wider range of hardware, including common cloud instances (like AWS Graviton), Apple Silicon (M1/M2/M3) via Docker Desktop, Raspberry Pis, and other ARM-based devices.
This is achieved by:
Adding docker/setup-qemu-action for cross-architecture emulation.
Configuring docker/build-push-action with the platforms parameter.
Optimizing Docker Registry Login:
The docker/login-action step is now conditional. It will only execute if the workflow event is not a pull_request.
This means we only attempt to log in to the container registry when we intend to push the image (e.g., on merges to main or tag pushes), not during pull request validation builds. This saves time and avoids unnecessary authentication attempts.
* Remove qemu since it's too slow
* fix os name
* clean file
0 commit comments