mirror of
https://github.com/anjia0532/gcr.io_mirror.git
synced 2025-09-22 19:52:51 +08:00
支持 gcr.io k8s.gcr.io registry.k8s.io quay.io ghcr.io 等镜像库
This commit is contained in:
2
main.go
2
main.go
@@ -201,6 +201,8 @@ func mirrorByIssues(issues *github.Issue, config *Config) (err error, originImag
|
||||
return errors.New("@" + *issues.GetUser().Login + " 暂不支持同步" + originImageName + ",目前仅支持同步 `" + strings.Join(registrys, " ,") + "`镜像"), originImageName, targetImageName
|
||||
}
|
||||
|
||||
targetImageName = strings.ReplaceAll(targetImageName, "/", ".")
|
||||
|
||||
if len(config.RegistryNamespace) > 0 {
|
||||
targetImageName = config.RegistryNamespace + "/" + targetImageName
|
||||
}
|
||||
|
Reference in New Issue
Block a user