mirror of
https://github.com/docker/compose.git
synced 2025-07-28 16:14:06 +02:00
use output registry when push true and load to docker store if not
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
This commit is contained in:
parent
4ae7066955
commit
f6ddd6ae88
@ -205,7 +205,11 @@ func (s *composeService) doBuildBake(ctx context.Context, project *types.Project
|
|||||||
case len(service.Build.Platforms) > 1:
|
case len(service.Build.Platforms) > 1:
|
||||||
outputs = []string{fmt.Sprintf("type=image,push=%t", push)}
|
outputs = []string{fmt.Sprintf("type=image,push=%t", push)}
|
||||||
default:
|
default:
|
||||||
outputs = []string{fmt.Sprintf("type=docker,load=true,push=%t", push)}
|
if push {
|
||||||
|
outputs = []string{"type=registry"}
|
||||||
|
} else {
|
||||||
|
outputs = []string{"type=docker"}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
read = append(read, build.Context)
|
read = append(read, build.Context)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user