Add build output option (#11)

Fixes #6

Also updates dependencies

Co-authored-by: Lauris BH <lauris@nix.lv>
Reviewed-on: https://codeberg.org/woodpecker-plugins/plugin-docker-buildx/pulls/11
Reviewed-by: anbraten <anbraten@noreply.codeberg.org>
Co-authored-by: Lauris BH <lafriks@noreply.codeberg.org>
Co-committed-by: Lauris BH <lafriks@noreply.codeberg.org>
This commit is contained in:
Lauris BH
2022-09-20 18:02:35 +02:00
committed by anbraten
parent 1d08a8f99a
commit b88f39c31f
6 changed files with 80 additions and 43 deletions

View File

@@ -111,6 +111,9 @@ func commandBuild(build Build, dryrun bool) *exec.Cmd {
if build.Target != "" {
args = append(args, "--target", build.Target)
}
if build.Output != "" {
args = append(args, "--output", build.Output)
}
if build.Quiet {
args = append(args, "--quiet")
}