fix(ci): resolve OCI platform before verifying published config
CI / check (push) Successful in 50s
CI / deploy (push) Successful in 1m7s
CI / publish-container (push) Failing after 43s

This commit is contained in:
Simo committed 2026-09-09 20:27:03 +02:00
1 parent 2af244b634
commit e617ed176a
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -62,7 +62,7 @@ for target in "$image-migrations" "$image"; do
# Import may change compression/manifest representation, but the immutable
# image config digest must still match the exact local image we verified.
expected_config="$(docker image inspect --format '{{.Id}}' "$target")"
remote_config="$(regctl manifest get "$target" --format '{{.GetConfig.Digest}}')"
remote_config="$(regctl manifest get "$target" --platform "linux/$arch" --format '{{.GetConfig.Digest}}')"
[[ "$remote_config" = "$expected_config" ]] || { echo "Published image config does not match verified local image" >&2; exit 1; }
rm -f -- "$context/image.tar"
done
+1
View File
@@ -89,6 +89,7 @@ it("bounds uploads and verifies both published image configs", () => {
expect(calls).not.toContain("docker push");
expect(calls.match(/regctl image import/g)).toHaveLength(2);
expect(calls.match(/regctl manifest get/g)).toHaveLength(2);
expect(calls.match(/--platform linux\/amd64/g)).toHaveLength(2);
});
it.each(["upload-fails", "wrong-config", "bad-checksum"])(
"stops publication on %s",