mirror of
https://github.com/docker/compose.git
synced 2025-07-23 13:45:00 +02:00
Fix quiet option when using COMPOSE_BAKE=1
Signed-off-by: Anvar Umuraliev <an.umuraliev@gmail.com>
This commit is contained in:
parent
053d225824
commit
23fc76a540
@ -261,6 +261,9 @@ func (s *composeService) doBuildBake(ctx context.Context, project *types.Project
|
||||
if options.Builder != "" {
|
||||
args = append(args, "--builder", options.Builder)
|
||||
}
|
||||
if options.Quiet {
|
||||
args = append(args, "--progress=quiet")
|
||||
}
|
||||
|
||||
logrus.Debugf("Executing bake with args: %v", args)
|
||||
|
||||
|
@ -128,6 +128,11 @@ func TestLocalComposeBuild(t *testing.T) {
|
||||
assert.Assert(t, !strings.Contains(res.Stdout(), "failed to push"), res.Stdout())
|
||||
})
|
||||
|
||||
t.Run(env+" build --quiet", func(t *testing.T) {
|
||||
res := c.RunDockerComposeCmd(t, "--project-directory", "fixtures/build-test", "build", "--quiet")
|
||||
res.Assert(t, icmd.Expected{Out: ""})
|
||||
})
|
||||
|
||||
t.Run(env+" cleanup build project", func(t *testing.T) {
|
||||
c.RunDockerComposeCmd(t, "--project-directory", "fixtures/build-test", "down")
|
||||
c.RunDockerOrExitError(t, "rmi", "-f", "build-test-nginx")
|
||||
|
Loading…
x
Reference in New Issue
Block a user