Add quiet build option
This adds the option for using the `--quiet` flag during builds. Signed-off-by: Gary Kim <gary@garykim.dev>
This commit is contained in:
@@ -56,6 +56,7 @@ type (
|
||||
Labels []string // Label map
|
||||
NoCache bool // Docker build no-cache
|
||||
AddHost []string // Docker build add-host
|
||||
Quiet bool // Docker build quiet
|
||||
}
|
||||
|
||||
// Plugin defines the Docker plugin parameters.
|
||||
@@ -243,6 +244,9 @@ func commandBuild(build Build) *exec.Cmd {
|
||||
if build.Target != "" {
|
||||
args = append(args, "--target", build.Target)
|
||||
}
|
||||
if build.Quiet {
|
||||
args = append(args, "--quiet")
|
||||
}
|
||||
|
||||
labelSchema := []string{
|
||||
"schema-version=1.0",
|
||||
|
||||
Reference in New Issue
Block a user