mirror of
https://github.com/project-zot/zot.git
synced 2026-06-15 20:07:55 +08:00
new config option for sync-destination
Signed-off-by: laurentiuNiculae <themelopeus@gmail.com>
This commit is contained in:
committed by
Ramkumar Chinchani
parent
6d04ab3cdc
commit
0d148e1d6b
+11
-1
@@ -403,7 +403,17 @@ Configure each registry sync:
|
||||
},
|
||||
{
|
||||
"prefix":"/repo3/**" # pull all images under repo3/ (matches recursively all repos under repo3/)
|
||||
}
|
||||
},
|
||||
{
|
||||
"prefix":"/repo1/repo", # pull /repo1/repo
|
||||
"destination":"/localrepo", # put /repo1/repo under /localrepo
|
||||
"stripPrefix":true # strip the path specified in "prefix", if true resulting /localpath, if false resulting /localrepo/repo1/repo"
|
||||
}
|
||||
{
|
||||
"prefix":"/repo1/**", # pull all images under repo1/ (matches recursively all repos under repo1/)
|
||||
"destination":"/localrepo", # put all images found under /localrepo.
|
||||
"stripPrefix":true # strip the path specified in "prefix" until meta-characters like "**". If we match /repo1/repo the local repo will be /localrepo/repo.
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -30,6 +30,11 @@
|
||||
"semver":true
|
||||
}
|
||||
},
|
||||
{
|
||||
"prefix":"/repo1/repo",
|
||||
"destination": "/repo",
|
||||
"stripPrefix": true
|
||||
},
|
||||
{
|
||||
"prefix":"/repo2/repo"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user