Skip to content

Commit

Permalink
fix conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
jbudz committed Apr 7, 2022
1 parent a35480c commit d0fe486
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ function generator({
}`;
const dockerArchitecture = architecture === 'aarch64' ? 'linux/arm64' : 'linux/amd64';
const dockerBuild = dockerCrossCompile
? `docker build -t ${dockerTargetName} -f Dockerfile . || exit 1;`
: `docker buildx build --platform ${dockerArchitecture} -t ${dockerTargetName} -f Dockerfile . || exit 1;`;
? `docker buildx build --platform ${dockerArchitecture} -t ${dockerTargetName} -f Dockerfile . || exit 1;`
: `docker build -t ${dockerTargetName} -f Dockerfile . || exit 1;`;
return dedent(`
#!/usr/bin/env bash
#
Expand Down

0 comments on commit d0fe486

Please sign in to comment.