Add support of --squash flag on build params

This commit is contained in:
Kévin Darcel
2017-01-19 12:42:33 -06:00
parent f55d828a22
commit 66f66c1b1c
2 changed files with 24 additions and 8 deletions

View File

@@ -113,6 +113,11 @@ func main() {
Usage: "build args",
EnvVar: "PLUGIN_BUILD_ARGS",
},
cli.BoolFlag{
Name: "squash",
Usage: "squash the layers at build time",
EnvVar: "PLUGIN_SQUASH",
},
cli.StringFlag{
Name: "repo",
Usage: "docker repository",
@@ -161,6 +166,7 @@ func run(c *cli.Context) error {
Context: c.String("context"),
Tags: c.StringSlice("tags"),
Args: c.StringSlice("args"),
Squash: c.Bool("squash"),
Repo: c.String("repo"),
},
Daemon: Daemon{