Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Commit 0477900

Browse files
authored
Fixes #1544 (#1597)
* Specifying a tarPath will push the image as well
1 parent 298245c commit 0477900

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

pkg/executor/push.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,10 @@ func DoPush(image v1.Image, opts *config.KanikoOptions) error {
236236
for _, destRef := range destRefs {
237237
tagToImage[destRef] = image
238238
}
239-
return tarball.MultiWriteToFile(opts.TarPath, tagToImage)
239+
err := tarball.MultiWriteToFile(opts.TarPath, tagToImage)
240+
if err != nil {
241+
return errors.Wrap(err, "writing tarball to file failed")
242+
}
240243
}
241244

242245
if opts.NoPush {

0 commit comments

Comments
 (0)