We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f572290 commit f046d7cCopy full SHA for f046d7c
eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1
@@ -156,9 +156,10 @@ function DeployStressPackage(
156
}
157
$imageTag += "/$($pkg.Namespace)/$($pkg.ReleaseName):${deployId}"
158
159
- if ($pushImages) {
+ $dockerFilePath = "$($pkg.Directory)/Dockerfile"
160
+ if ($pushImages -and (Test-Path $dockerFilePath)) {
161
Write-Host "Building and pushing stress test docker image '$imageTag'"
- $dockerFile = Get-ChildItem "$($pkg.Directory)/Dockerfile"
162
+ $dockerFile = Get-ChildItem $dockerFilePath
163
Run docker build -t $imageTag -f $dockerFile.FullName $dockerFile.DirectoryName
164
if ($LASTEXITCODE) { return }
165
Run docker push $imageTag
0 commit comments