mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 04:17:55 +08:00
fix(sync): also add docker v2 mediatype as supported in sync (#1084)
Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
This commit is contained in:
@@ -680,7 +680,8 @@ func descriptorEqual(desc1, desc2 ispec.Descriptor) bool {
|
||||
func isSupportedMediaType(mediaType string) bool {
|
||||
return mediaType == ispec.MediaTypeImageIndex ||
|
||||
mediaType == ispec.MediaTypeImageManifest ||
|
||||
mediaType == manifest.DockerV2ListMediaType
|
||||
mediaType == manifest.DockerV2ListMediaType ||
|
||||
mediaType == manifest.DockerV2Schema2MediaType
|
||||
}
|
||||
|
||||
func getImageRefManifest(ctx context.Context, upstreamCtx *types.SystemContext, imageRef types.ImageReference,
|
||||
|
||||
Reference in New Issue
Block a user