Use mutable source directly

This commit is contained in:
Priya Wadhwa
2018-03-07 16:22:59 -08:00
parent 98826ef951
commit 04b9e4bcdf
3 changed files with 11 additions and 21 deletions
+3 -2
View File
@@ -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)
}