Skip to content

Commit

Permalink
Sync eng/common directory with azure-sdk-tools for PR 8484 (#30134)
Browse files Browse the repository at this point in the history
Sync eng/common directory with azure-sdk-tools for PR
Azure/azure-sdk-tools#8484 See [eng/common
workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow)

Co-authored-by: Richard Park <ripark\@microsoft.com>
  • Loading branch information
azure-sdk and Richard Park authored Jun 21, 2024
1 parent b0b7d0f commit 114ede6
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,10 @@ function DeployStressPackage(
Write-Host "Setting DOCKER_BUILDKIT=1"
$env:DOCKER_BUILDKIT = 1

$dockerBuildCmd = "docker", "build", "-t", $imageTag, "-f", $dockerFile
# Force amd64 since that's what our AKS cluster is running. Without this you
# end up inheriting the default for our platform, which is bad when using ARM
# platforms.
$dockerBuildCmd = "docker", "build", "--platform", "linux/amd64", "-t", $imageTag, "-f", $dockerFile
foreach ($buildArg in $dockerBuildConfig.scenario.GetEnumerator()) {
$dockerBuildCmd += "--build-arg"
$dockerBuildCmd += "'$($buildArg.Key)'='$($buildArg.Value)'"
Expand Down

0 comments on commit 114ede6

Please sign in to comment.