Skip to content

Commit b5e932e

Browse files
committed
iterate over allow input values and push each separately
Signed-off-by: CrazyMax <[email protected]>
1 parent 0259cb0 commit b5e932e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/context.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,9 @@ async function getBuildArgs(inputs: Inputs, context: string, toolkit: Toolkit):
117117
await Util.asyncForEach(inputs['add-hosts'], async addHost => {
118118
args.push('--add-host', addHost);
119119
});
120-
if (inputs.allow.length > 0) {
121-
args.push('--allow', inputs.allow.join(','));
122-
}
120+
await Util.asyncForEach(inputs.allow, async allow => {
121+
args.push('--allow', allow);
122+
});
123123
if (await toolkit.buildx.versionSatisfies('>=0.12.0')) {
124124
await Util.asyncForEach(inputs.annotations, async annotation => {
125125
args.push('--annotation', annotation);

0 commit comments

Comments
 (0)