mirror of
https://github.com/docker/compose.git
synced 2025-07-26 23:24:05 +02:00
pass project.environment to bake
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
33a782572f
commit
6501d59efc
@ -295,7 +295,7 @@ func (s *composeService) doBuildBake(ctx context.Context, project *types.Project
|
|||||||
|
|
||||||
cmd := exec.CommandContext(ctx, buildx.Path, args...)
|
cmd := exec.CommandContext(ctx, buildx.Path, args...)
|
||||||
// Remove DOCKER_CLI_PLUGIN... variable so buildx can detect it run standalone
|
// Remove DOCKER_CLI_PLUGIN... variable so buildx can detect it run standalone
|
||||||
cmd.Env = filter(os.Environ(), manager.ReexecEnvvar)
|
cmd.Env = filter(project.Environment.Values(), manager.ReexecEnvvar)
|
||||||
|
|
||||||
// Use docker/cli mechanism to propagate termination signal to child process
|
// Use docker/cli mechanism to propagate termination signal to child process
|
||||||
server, err := socket.NewPluginServer(nil)
|
server, err := socket.NewPluginServer(nil)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user