add cache-from

This commit is contained in:
Seth Pollack
2017-09-26 14:42:57 -04:00
committed by Ryan Sullivan
parent 9589237541
commit a48b59645a
2 changed files with 22 additions and 0 deletions

View File

@@ -150,6 +150,10 @@ func main() {
Name: "target",
Usage: "build target",
EnvVar: "PLUGIN_TARGET",
cli.StringSliceFlag{
Name: "cache-from",
Usage: "cache from",
EnvVar: "PLUGIN_CACHE_FROM",
},
cli.BoolFlag{
Name: "squash",
@@ -245,6 +249,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"),
Compress: c.Bool("compress"),
Repo: c.String("repo"),
Labels: c.StringSlice("custom-labels"),