From de233f502f30ffbd034e474f76ffb003a21cdf35 Mon Sep 17 00:00:00 2001 From: Jacob Gillespie Date: Sat, 24 Feb 2024 15:02:32 +0000 Subject: [PATCH] Allow tag overrides to apply to Compose files --- pkg/buildx/commands/bake.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/buildx/commands/bake.go b/pkg/buildx/commands/bake.go index b1d0048f..ce4cb710 100644 --- a/pkg/buildx/commands/bake.go +++ b/pkg/buildx/commands/bake.go @@ -425,7 +425,7 @@ func (t *LocalBakeValidator) Validate(ctx context.Context, _ []builder.Node, _ p } for target, opts := range targets { - if tag, ok := tags[target]; ok { + if tag, ok := tags[target]; ok && len(opts.Tags) == 0 { opts.Tags = tag } }