patch nocache

This commit is contained in:
shovelwagon
2018-02-14 22:01:13 -07:00
parent af4a2586ce
commit 1ec6edc647
3 changed files with 23 additions and 14 deletions

View File

@@ -49,6 +49,7 @@ type (
Compress bool // Docker build compress
Repo string // Docker build repository
LabelSchema []string // Label schema map
NoCache bool // Docker build no-cache
}
// Plugin defines the Docker plugin parameters.
@@ -198,6 +199,9 @@ func commandBuild(build Build) *exec.Cmd {
if build.Pull {
args = append(args, "--pull=true")
}
if build.NoCache {
args = append(args, "--no-cache")
}
for _, arg := range build.ArgsEnv {
addProxyValue(&build, arg)
}