Skip to content

Commit 3098da5

Browse files
committed
pass project.environment to bake
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 3553aa2 commit 3098da5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/compose/build_bake.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ func (s *composeService) doBuildBake(ctx context.Context, project *types.Project
295295

296296
cmd := exec.CommandContext(ctx, buildx.Path, args...)
297297
// Remove DOCKER_CLI_PLUGIN... variable so buildx can detect it run standalone
298-
cmd.Env = filter(os.Environ(), manager.ReexecEnvvar)
298+
cmd.Env = filter(project.Environment.Values(), manager.ReexecEnvvar)
299299

300300
// Use docker/cli mechanism to propagate termination signal to child process
301301
server, err := socket.NewPluginServer(nil)

0 commit comments

Comments
 (0)