Skip to content

Commit

Permalink
Merge pull request #395 from crazy-max/bake-fix-resolveRefs
Browse files Browse the repository at this point in the history
buildx: fix resolveRefs for bake
  • Loading branch information
crazy-max committed Jul 2, 2024
2 parents 2cb2c55 + 16ecd76 commit 931b62d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/buildx/bake.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand Down

0 comments on commit 931b62d

Please sign in to comment.