mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 12:28:01 +08:00
sync: preserve upstream digests after syncing images
Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
This commit is contained in:
committed by
Ramkumar Chinchani
parent
bd730150a8
commit
da4acaf178
@@ -264,6 +264,7 @@ func getCopyOptions(upstreamCtx, localCtx *types.SystemContext) copy.Options {
|
||||
SourceCtx: upstreamCtx,
|
||||
ReportWriter: io.Discard,
|
||||
ForceManifestMIMEType: ispec.MediaTypeImageManifest, // force only oci manifest MIME type
|
||||
PreserveDigests: true,
|
||||
}
|
||||
|
||||
return options
|
||||
|
||||
Reference in New Issue
Block a user