Commit b537810
committed
Compare the image config when checking for a platform
The platform check used regctl manifest get --platform, which only
selects an entry inside a manifest list. Against a plain manifest it
succeeds whatever platform is asked for: an arm64-only tag answers yes
to linux/amd64, and to linux/ppc64le for that matter.
The tags this check exists for are plain manifests. skopeo copy without
--all writes a single manifest, so an amd64-only tag left behind by an
earlier run is exactly the case that slipped through, and the check went
on skipping the push it was added to allow.
regctl image config resolves the platform and reports the architecture
it actually found, so comparing that against the requested platform
distinguishes the two.
Signed-off-by: Abrar Shivani <ashivani@nvidia.com>1 parent cb2b095 commit b537810
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
106 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| |||
0 commit comments