From 17df6f69e6e37c64a1589d9f763d3d4160e94bd6 Mon Sep 17 00:00:00 2001 From: Jakub Panek Date: Sat, 5 Apr 2025 10:58:52 +0200 Subject: [PATCH] allow image index type for oci-layout OCI specification allows either image.index or image.manifest for each manifest descriptor in OCI layout https://github.com/opencontainers/image-spec/blob/c05acf7eb327dae4704a4efe01253a0e60af6b34/image-layout.md?plain=1#L153 Signed-off-by: Jakub Panek --- pkg/cmd/builder/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/builder/build.go b/pkg/cmd/builder/build.go index 4fb69ccd1fb..85771b0196b 100644 --- a/pkg/cmd/builder/build.go +++ b/pkg/cmd/builder/build.go @@ -580,7 +580,7 @@ func parseBuildContextFromOCILayout(name, path string) ([]string, error) { var digest string for _, manifest := range ociIndex.Manifests { - if images.IsManifestType(manifest.MediaType) { + if images.IsManifestType(manifest.MediaType) || images.IsIndexType(manifest.MediaType) { digest = manifest.Digest.String() } }