allow flag --target in build process

This commit is contained in:
Marco Vito Moscaritolo
2018-02-07 19:31:10 +01:00
parent af4a2586ce
commit 86388a5be3
2 changed files with 10 additions and 0 deletions

View File

@@ -146,6 +146,11 @@ func main() {
Usage: "build args",
EnvVar: "PLUGIN_BUILD_ARGS_FROM_ENV",
},
cli.StringFlag{
Name: "target",
Usage: "build target",
EnvVar: "PLUGIN_BUILD_TARGET",
},
cli.BoolFlag{
Name: "squash",
Usage: "squash the layers at build time",
@@ -227,6 +232,7 @@ func run(c *cli.Context) error {
Tags: c.StringSlice("tags"),
Args: c.StringSlice("args"),
ArgsEnv: c.StringSlice("args-from-env"),
Target: c.String("target"),
Squash: c.Bool("squash"),
Pull: c.BoolT("pull-image"),
Compress: c.Bool("compress"),