make cache-from an array

This commit is contained in:
Seth Pollack
2017-10-26 12:26:26 -04:00
committed by Ryan Sullivan
parent a48b59645a
commit 008bbaf47b
2 changed files with 7 additions and 6 deletions

View File

@@ -150,6 +150,7 @@ func main() {
Name: "target",
Usage: "build target",
EnvVar: "PLUGIN_TARGET",
},
cli.StringSliceFlag{
Name: "cache-from",
Usage: "cache from",
@@ -249,7 +250,7 @@ func run(c *cli.Context) error {
Target: c.String("target"),
Squash: c.Bool("squash"),
Pull: c.BoolT("pull-image"),
CacheFrom: c.String("cache-from"),
CacheFrom: c.StringSlice("cache-from"),
Compress: c.Bool("compress"),
Repo: c.String("repo"),
Labels: c.StringSlice("custom-labels"),