3
0
Fork 0
mirror of https://gitea.com/docker/build-push-action.git synced 2024-11-27 11:59:37 +01:00

Merge pull request #1267 from crazy-max/fix-allow

iterate over allow input values and push each separately
This commit is contained in:
CrazyMax 2024-11-26 10:54:57 +01:00 committed by GitHub
commit 70dd953427
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

2
dist/index.js generated vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View file

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