buildx: fix resolveRefs for bake

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2024-07-02 12:07:44 +02:00
parent 2cb2c5573f
commit 16ecd76490
No known key found for this signature in database
GPG Key ID: ADE44D8C9D44FBE4

View File

@ -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<BakeDefinition> {