Ignore 'registry not found' when pushing on independent registries
Upstream-commit: 2a1f8f6fda55a5fa2132dbad374043e9fbf6d9f6 Component: engine
This commit is contained in:
@ -600,14 +600,15 @@ func (srv *Server) pushRepository(r *registry.Registry, out io.Writer, name, reg
|
||||
Endpoints: []string{registryEp},
|
||||
}
|
||||
tagsList, err := srv.registry.GetRemoteTags(repoData.Endpoints, name, repoData.Tokens)
|
||||
if err != nil {
|
||||
if err != nil && err.Error() != "Repository not found" {
|
||||
return err
|
||||
}
|
||||
for tag, id := range tagsList {
|
||||
repoData.ImgList[id] = ®istry.ImgData{
|
||||
Id: id,
|
||||
Tag: tag,
|
||||
Checksum: "",
|
||||
} else if err == nil {
|
||||
for tag, id := range tagsList {
|
||||
repoData.ImgList[id] = ®istry.ImgData{
|
||||
Id: id,
|
||||
Tag: tag,
|
||||
Checksum: "",
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user