Merge pull request #395 from crazy-max/bake-fix-resolveRefs

buildx: fix resolveRefs for bake
This commit is contained in:
CrazyMax 2024-07-02 12:52:09 +02:00 committed by GitHub
commit 931b62d64f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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