I've been looking over this guide on how to choose the runner for a GitHub workflow (e.g., ubuntu-22.04
).
Is there a way to specify the processor architecture of the runner? My GitHub workflow builds and pushes a Docker image to Docker Hub and I'd like to create both i386 and x86_64 images.
For building multi-arch docker images, you can follow Multi-platform image with GitHub Actions. It uses docker/build-push-action. You can use its platforms
input parameter to specify different platforms and architectures.