type=image
This commit is contained in:
parent
3b6a6e0d55
commit
643abccda0
1 changed files with 4 additions and 4 deletions
|
|
@ -105,13 +105,13 @@ func commandBuild(build Build, dryrun bool) *exec.Cmd {
|
|||
args = append(args, "--target", build.Target)
|
||||
}
|
||||
if build.Output != "" && dryrun {
|
||||
args = append(args, "--output", "type=docker,rewrite-timestamp=true,"+build.Output)
|
||||
args = append(args, "--output", "type=image,rewrite-timestamp=true,"+build.Output)
|
||||
} else if build.Output != "" && !dryrun {
|
||||
args = append(args, "--output", "type=docker,push=true,rewrite-timestamp=true"+build.Output)
|
||||
args = append(args, "--output", "type=image,push=true,rewrite-timestamp=true"+build.Output)
|
||||
} else if dryrun {
|
||||
args = append(args, "--output", "type=docker,rewrite-timestamp=true")
|
||||
args = append(args, "--output", "type=image,rewrite-timestamp=true")
|
||||
} else {
|
||||
args = append(args, "--output", "type=docker,push=true,rewrite-timestamp=true")
|
||||
args = append(args, "--output", "type=image,push=true,rewrite-timestamp=true")
|
||||
}
|
||||
if build.Quiet {
|
||||
args = append(args, "--quiet")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue