iterate over allow input values and push each separately

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
pull/1267/head
CrazyMax 2024-11-26 01:14:29 +01:00
parent 0259cb088b
commit b5e932e401
No known key found for this signature in database
GPG Key ID: ADE44D8C9D44FBE4
1 changed files with 3 additions and 3 deletions

View File

@ -117,9 +117,9 @@ async function getBuildArgs(inputs: Inputs, context: string, toolkit: Toolkit):
await Util.asyncForEach(inputs['add-hosts'], async addHost => {
args.push('--add-host', addHost);
});
if (inputs.allow.length > 0) {
args.push('--allow', inputs.allow.join(','));
}
await Util.asyncForEach(inputs.allow, async allow => {
args.push('--allow', allow);
});
if (await toolkit.buildx.versionSatisfies('>=0.12.0')) {
await Util.asyncForEach(inputs.annotations, async annotation => {
args.push('--annotation', annotation);