Skip to content

Commit

Permalink
Merge pull request docker#505 from crazy-max/bake-call
Browse files Browse the repository at this point in the history
bake: missing call and allow cmd opts
crazy-max authored Nov 26, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 5cd4716 + 79b9812 commit ecd73af
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/buildx/bake.ts
Original file line number Diff line number Diff line change
@@ -33,6 +33,8 @@ export interface BakeOpts {
}

export interface BakeCmdOpts {
allow?: Array<string>;
call?: string;
files?: Array<string>;
load?: boolean;
noCache?: boolean;
@@ -142,6 +144,14 @@ export class Bake {
args.push('--set', override);
}
}
if (cmdOpts.allow) {
for (const allow of cmdOpts.allow) {
args.push('--allow', allow);
}
}
if (cmdOpts.call) {
args.push('--call', cmdOpts.call);
}
if (cmdOpts.load) {
args.push('--load');
}

0 comments on commit ecd73af

Please sign in to comment.