diff --git a/pkg/executor/executor.go b/pkg/executor/executor.go index 00da32231..4562ea9cf 100644 --- a/pkg/executor/executor.go +++ b/pkg/executor/executor.go @@ -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))