mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-19 00:01:50 +02:00
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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user