* Specifying a tarPath will push the image as well
This commit is contained in:
Lars Gröber
2021-03-31 10:17:26 -07:00
committed by GitHub
parent 298245c648
commit 0477900feb
+4 -1
View File
@@ -236,7 +236,10 @@ func DoPush(image v1.Image, opts *config.KanikoOptions) error {
for _, destRef := range destRefs {
tagToImage[destRef] = image
}
return tarball.MultiWriteToFile(opts.TarPath, tagToImage)
err := tarball.MultiWriteToFile(opts.TarPath, tagToImage)
if err != nil {
return errors.Wrap(err, "writing tarball to file failed")
}
}
if opts.NoPush {