diff --git a/azure-pipelines.yml b/azure-pipelines.yml index caf52d9..1c14e1f 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -84,9 +84,9 @@ stages: regionName: $(awsRegion) scriptType: inline inlineScript: | - docker login -u ${{ variables.dockerhubUsername }} -p ${{ variables.dockerhubPat }} - docker build -t ${{ variables.dockerhubUsername }}/${{ parameters.images[image.key].name }}:$(Build.BuildNumber) -f ${{ parameters.images[image.key].pathToDockerFile }} ${{ parameters.images[image.key].pathToDockerContext}} - docker push ${{ variables.dockerhubUsername }}/${{ parameters.images[image.key].name }}:$(Build.BuildNumber) + docker login -u $(dockerhubUsername) -p $(dockerhubPat) + docker build -t $(dockerhubUsername)/${{ parameters.images[image.key].name }}:$(Build.BuildNumber) -f ${{ parameters.images[image.key].pathToDockerFile }} ${{ parameters.images[image.key].pathToDockerContext}} + docker push $(dockerhubUsername)/${{ parameters.images[image.key].name }}:$(Build.BuildNumber) failOnStdErr: true targetType: inline