Additionally, you need to add these stages before the actual build stage in your workflow:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Btw, I don’t really understand why you're using two different workflows for basically the same task, because the only thing that differs between these workflows is the Docker registry.
In your
.github/workflows/push_ghcr.yml
you are actually building two AMD64 Docker images, but with different binaries.You should change it to something like this:
Additionally, you need to add these stages before the actual build stage in your workflow:
Btw, I don’t really understand why you're using two different workflows for basically the same task, because the only thing that differs between these workflows is the Docker registry.
And another remark, you can have an image with the different platforms/archs under a single tag. You don`t need to create a separate tag for each arch. https://docs.docker.com/build/building/multi-platform/#difference-between-single-platform-and-multi-platform-images