We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f06eda commit f31f493Copy full SHA for f31f493
pkg/build/kaniko.go
@@ -258,8 +258,12 @@ func (bb *Build) pullDaemonless(tag string) error {
258
func (bb *Build) tagAndPushDaemonless(from, to string) error {
259
bb.Printf("Running: tag and push %s\n", to)
260
261
- imgTar := tarPathFor(from)
+ imgTar := injectedTarPathFor(from)
262
img, err := tarball.ImageFromPath(imgTar, nil)
263
+ if err != nil && os.IsNotExist(err) {
264
+ imgTar = tarPathFor(from)
265
+ img, err = tarball.ImageFromPath(imgTar, nil)
266
+ }
267
if err != nil {
268
return fmt.Errorf("load tar: %w", err)
269
}
0 commit comments