mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-02 21:02:21 +02:00
Use mutable source directly
This commit is contained in:
@@ -83,12 +83,13 @@ func execute() error {
|
||||
}
|
||||
|
||||
// Initialize source image
|
||||
if err := image.InitializeSourceImage(baseImage); err != nil {
|
||||
sourceImage, err := image.NewSourceImage(baseImage)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// Execute commands here
|
||||
|
||||
// Push the image
|
||||
return image.PushImage(destination)
|
||||
return image.PushImage(sourceImage, destination)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user