janhoy opened a new pull request, #926:
URL: https://github.com/apache/solr-operator/pull/926
The "Verify the published image" step of the Publish Docker Image workflow
failed for v0.10.0-rc1, although the image was published correctly: failed run.
> Error: pulled docker.io/apache/solr-operator:v0.10.0-rc1 for linux/arm64,
but got an image for /
The runner's Docker uses the containerd image store, where an image tag
refers to the whole multi-platform index, and docker image inspect without
--platform resolves it to the host's platform. The step verifies linux/amd64
first and then removes it, so after pulling only linux/arm64 the inspect found
no amd64 variant and returned an empty platform.
The check now inspects the platform that was pulled, with docker image
inspect --platform "${platform}". It still fails if the pull stored the wrong
variant.
- Reproduced locally with Docker 29 and the containerd store: after pulling
only the non-native platform of v0.10.0-rc1, a plain inspect returns / and an
inspect with --platform returns the right platform.
- Ran the fixed loop locally against v0.10.0-rc1 for both platforms, and it
passes.
- docker buildx imagetools inspect shows the published v0.10.0-rc1 has
linux/amd64 and linux/arm64, both built from 882aa4f.
The workflow runs from the pushed commit, so runs for v0.10.0 will only pick
this up if it is also cherry-picked to release-0.10 before the next RC or the
release tag.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]