Ignore 'registry not found' when pushing on independent registries
This commit is contained in:
parent
1c817913ee
commit
2a1f8f6fda
|
@ -600,9 +600,9 @@ 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
|
||||
}
|
||||
} else if err == nil {
|
||||
for tag, id := range tagsList {
|
||||
repoData.ImgList[id] = ®istry.ImgData{
|
||||
Id: id,
|
||||
|
@ -611,6 +611,7 @@ func (srv *Server) pushRepository(r *registry.Registry, out io.Writer, name, reg
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for _, ep := range repoData.Endpoints {
|
||||
out.Write(sf.FormatStatus("Pushing repository %s to %s (%d tags)", name, ep, len(localRepo)))
|
||||
|
|
Loading…
Reference in New Issue