Save each stage in multistage dockerfiles as a tarball (#244)

* resolve basenames in dockerfile to fix multistage bug

* WIP

* WIP

* Save dockerfile stages as tarballs

* added unit tests

* fix unit tests
This commit is contained in:
priyawadhwa
2018-07-19 11:27:49 -07:00
committed by GitHub
parent 697ad41bc5
commit eb6faa05a0
8 changed files with 243 additions and 88 deletions
+2 -2
View File
@@ -85,7 +85,7 @@ var RootCmd = &cobra.Command{
logrus.Error(err)
os.Exit(1)
}
ref, image, err := executor.DoBuild(executor.KanikoBuildArgs{
image, err := executor.DoBuild(executor.KanikoBuildArgs{
DockerfilePath: absouteDockerfilePath(),
SrcContext: srcContext,
SnapshotMode: snapshotMode,
@@ -98,7 +98,7 @@ var RootCmd = &cobra.Command{
os.Exit(1)
}
if err := executor.DoPush(ref, image, destinations, tarPath); err != nil {
if err := executor.DoPush(image, destinations, tarPath); err != nil {
logrus.Error(err)
os.Exit(1)
}