Repository navigation
Conversation
With the containerd image store, which the runner's Docker uses, an image tag refers to the whole multi-platform index, and docker image inspect resolves it to the host's platform. After the native platform had been verified and removed, the inspect of the other platform found nothing and returned an empty platform, failing the verification of an image that was published correctly. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain, and the workflow now verifies the explicitly requested platform variant during multi-platform image pulls.
No open issues 🎉
What changed in this PR
Updates the publish workflow to verify the exact platform requested during multi-platform image pulls, preventing false failures with Docker’s containerd image store.
Changes:
- Adds
--platform "${platform}"todocker image inspect. - Preserves validation that the pulled image matches the requested platform.
| File | Description |
|---|---|
| .github/workflows/publish-docker-image.yaml | Updates Docker image verification to inspect and validate the explicitly pulled platform variant. |
Review effort: Lite
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
https://github.com/apache/solr-operator/actions/runs/46848504222/job/143461401500
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.
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.