Merge pull request #168 from mavimo/define-target-multistage-build

Allow build for a specific target
This commit is contained in:
Brad Rydzewski
2018-02-21 12:38:42 -08:00
committed by GitHub
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_TARGET",
},
cli.BoolFlag{
Name: "squash",
Usage: "squash the layers at build time",
@@ -232,6 +237,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"),