* Specifying a tarPath will push the image as well
This commit is contained in:
Lars Gröber 2021-03-31 19:17:26 +02:00 committed by GitHub
parent 298245c648
commit 0477900feb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

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 {