{"repo":"sredevopsorg/multi-arch-docker-github-workflow","free":true,"listed":false,"github":"https://github.com/sredevopsorg/multi-arch-docker-github-workflow","clone":"git clone https://github.com/sredevopsorg/multi-arch-docker-github-workflow.git","description":"How to build a Multi-Architecture Docker Image in Github Actions using multiple runners without QEMU","language":"Dockerfile","stars":24,"topics":["docker","github-actions","github-runners","github-workflows","multiarch-images"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"Multi-Architecture Docker Build with Native GitHub Runners How to build a Multi-Architecture Docker Image in Github Actions using multiple runners without QEMU Created by SREDevOps.org @sredevopsorg @ngeorger By following these steps and reviewing the workflow file, you can customize and use this multi-architecture build process in your own projects. Happy building! This repository demonstrates how to build multi-architecture Docker images (for example, linux/amd64 and linux/arm64 ) using native GitHub runners instead of QEMU emulation. By leveraging separate native runners for each architecture, you get faster builds and higher fidelity (no emulation quirks) while still producing a single multi-arch image that you can push to GitHub Container Registry (GHCR). Note: This workflow requires access to both an AMD64 runner (using ubuntu-latest ) and an ARM64 runner (for example, ubuntu-24.04-arm ). Make sure your GitHub organization or repository has access to these runners. Overview The workflow is divided into two main jobs: 1. Build Job: - Uses a matrix strategy to build images for each platform separately. - Sets up a Docker context and configures Buildx to build images natively. - Logs into GHCR and builds & pushes the image by digest. - Exports the digest as an artifact for later use. 2. Merge Job: - Downloads the digests from the build job. - Generates Docker image metadata (tags, labels, and annotations). - Uses Buildx to create a multi-architecture manifest list from the","default_branch":null,"files":null,"tree":[],"storefront":"/r/sredevopsorg","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sredevopsorg/multi-arch-docker-github-workflow/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}