Skip to content

Commit 17df6f6

Browse files
committed
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 <me@panekj.dev>
1 parent 7efb818 commit 17df6f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cmd/builder/build.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ func parseBuildContextFromOCILayout(name, path string) ([]string, error) {
580580

581581
var digest string
582582
for _, manifest := range ociIndex.Manifests {
583-
if images.IsManifestType(manifest.MediaType) {
583+
if images.IsManifestType(manifest.MediaType) || images.IsIndexType(manifest.MediaType) {
584584
digest = manifest.Digest.String()
585585
}
586586
}

0 commit comments

Comments
 (0)