Skip to content

Commit 70dd953

Browse files
authored
Merge pull request #1267 from crazy-max/fix-allow
iterate over allow input values and push each separately
2 parents 41b4e80 + 6bdcc4f commit 70dd953

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/context.ts

Lines changed: 3 additions & 3 deletions
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)