From 16ecd7649017e44f855dd4540f8c0191d2d245f5 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Tue, 2 Jul 2024 12:07:44 +0200 Subject: [PATCH] buildx: fix resolveRefs for bake Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- src/buildx/bake.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/buildx/bake.ts b/src/buildx/bake.ts index 8490052..b53fa60 100644 --- a/src/buildx/bake.ts +++ b/src/buildx/bake.ts @@ -83,7 +83,7 @@ export class Bake { refs.push(metadata[key]['buildx.build.ref']); } } - return refs; + return refs.length > 0 ? refs : undefined; } public async getDefinition(cmdOpts: BakeCmdOpts, execOptions?: ExecOptions): Promise {