Merge pull request #773 from tonistiigi/bake-push-fix

bake: fix using push override with output definition
This commit is contained in:
Tõnis Tiigi
2021-09-21 17:53:45 -07:00
committed by GitHub
4 changed files with 169 additions and 62 deletions

View File

@ -64,7 +64,7 @@ func runBake(dockerCli command.Cli, targets []string, in bakeOptions) (err error
if in.exportLoad {
return errors.Errorf("push and load may not be set together at the moment")
}
overrides = append(overrides, "*.output=type=registry")
overrides = append(overrides, "*.push=true")
} else if in.exportLoad {
overrides = append(overrides, "*.output=type=docker")
}