mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 12:58:02 +08:00
sync: allow for saving to a subpath, closes #307
Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
This commit is contained in:
committed by
Ramkumar Chinchani
parent
96226af869
commit
63a75216ed
@@ -367,6 +367,7 @@ func syncRegistry(regCfg RegistryConfig, storeController storage.StoreController
|
||||
upstreamRef := ref
|
||||
|
||||
imageName := strings.Replace(upstreamRef.DockerReference().Name(), upstreamRegistryName, "", 1)
|
||||
imageName = strings.TrimPrefix(imageName, "/")
|
||||
|
||||
imageStore := storeController.GetImageStore(imageName)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user