Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
fangzhengjin committed Sep 20, 2023
1 parent b94fa03 commit 86755ea
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/scripts/run-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ module.exports = async (scripts) => {
const labelArgs = Object.keys(annotations).map((key) => `--label=${key}=${annotations[key]}`);
const annotationArgs = Object.keys(annotations).map((key) => `annotation-index.${key}=${annotations[key]}`);

await exec.exec('docker', [
'buildx',
'build',
'--provenance=false',
`--platform=${platformArgs.join(',')}`,
...tags,
...labelArgs,
platformArgs.length > 1 ? `--output=type=image,${platformArgs.join(',')}` : '',
context.payload.label.name,
'--push',
]);
const args = ['buildx', 'build', '-provenance=false'];
args.push(`--platform=${platformArgs.join(',')}`);
tags.forEach((x) => args.push(x));
labelArgs.forEach((x) => args.push(x));
if (platformArgs.length > 1) {
args.push(`--output=type=image,${platformArgs.join(',')}`);
}
args.push(context.payload.label.name);
args.push('--push');

await exec.exec('docker', args);

if (
await runtime.createIssueComment(
Expand Down

0 comments on commit 86755ea

Please sign in to comment.