Skip to content

Commit

Permalink
Merge pull request #135 from crazy-max/fix-buildx-install-platform
Browse files Browse the repository at this point in the history
buildx: build for local platform
  • Loading branch information
crazy-max committed Jul 12, 2023
2 parents fd97af1 + db5c712 commit f1593e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/buildx/install.ts
Expand Up @@ -177,7 +177,7 @@ export class Install {
throw new Error(`Neither buildx standalone or plugin have been found to build from ref ${gitContext}`);
}

const args = ['build', '--target', 'binaries', '--build-arg', 'BUILDKIT_CONTEXT_KEEP_GIT_DIR=1', '--output', `type=local,dest=${outputDir}`];
const args = ['build', '--target', 'binaries', '--platform', 'local', '--build-arg', 'BUILDKIT_CONTEXT_KEEP_GIT_DIR=1', '--output', `type=local,dest=${outputDir}`];
if (process.env.GIT_AUTH_TOKEN) {
args.push('--secret', 'id=GIT_AUTH_TOKEN');
}
Expand Down

0 comments on commit f1593e3

Please sign in to comment.