Fix MountPaths breakage
This commit is contained in:
parent
8b0a1a7689
commit
1bb0df22b3
|
|
@ -184,15 +184,12 @@ func DoPush(ref name.Reference, image v1.Image, destinations []string, tarPath s
|
|||
return tarball.WriteToFile(tarPath, destRef, image, nil)
|
||||
}
|
||||
|
||||
wo := remote.WriteOptions{}
|
||||
if ref != nil {
|
||||
wo.MountPaths = []name.Repository{ref.Context()}
|
||||
}
|
||||
pushAuth, err := authn.DefaultKeychain.Resolve(destRef.Context().Registry)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
wo := remote.WriteOptions{}
|
||||
err = remote.Write(destRef, image, pushAuth, http.DefaultTransport, wo)
|
||||
if err != nil {
|
||||
logrus.Error(fmt.Errorf("Failed to push to destination %s", destination))
|
||||
|
|
|
|||
Loading…
Reference in New Issue