mirror of
https://github.com/thegeeklab/drone-docker-buildx.git
synced 2024-06-01 16:09:41 +02:00
Do not push if "output" is set
push is just another variant of output and it does not make sense to have both: https://docs.docker.com/engine/reference/commandline/buildx_build/#push
This commit is contained in:
parent
3bda61ef73
commit
2ff6af4564
|
@ -84,7 +84,7 @@ func commandBuild(build Build, dryrun bool) *exec.Cmd {
|
|||
}
|
||||
|
||||
args = append(args, build.Context)
|
||||
if !dryrun && len(build.Tags.Value()) > 0 {
|
||||
if !dryrun && build.Output == "" && len(build.Tags.Value()) > 0 {
|
||||
args = append(args, "--push")
|
||||
}
|
||||
if build.Compress {
|
||||
|
|
Loading…
Reference in New Issue
Block a user