Closed ianschmitz closed 5 months ago
@ianschmitz - that will be awesome. Please create the PR. You can also use docker pull --platform linux/x86_64 ghcr.io/nlmatics/nlm-ingestor:latest as a workaround, but it will be great to fix this correctly in the repo. Thanks for the offer.
When trying to pull on a M1 MacBook i get the following error:
Looking at the action that builds and deploys the image, it looks like
platforms
isn't included: https://github.com/nlmatics/nlm-ingestor/blob/8f1bcb46ba7cc3dfe0d8c60a150a32fe887be78a/.github/workflows/docker-publish.yml#L73-L79However it was set above when setting up docker buildx: https://github.com/nlmatics/nlm-ingestor/blob/8f1bcb46ba7cc3dfe0d8c60a150a32fe887be78a/.github/workflows/docker-publish.yml#L48
I'm not entirely sure what
platforms
does in the context of thesetup-buildx-action
, but looking at the docs for multi-platform build it looks like if QEMU was setup as an action prior to build, we could simply specify theplatforms
as part of thebuild-push-action
.Would you accept a PR to fix this and deploy a multi-platform image? If so what are the platforms you would like to target?