Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ctl-image-build.yml #12973

Merged
merged 2 commits into from
Jul 9, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions sdk/cosmos/azure-cosmos-benchmark/ctl-image-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,12 @@ jobs:
# Below will build the image and push it to azure container registry
- pwsh: |
cd $(Agent.TempDirectory)/ctl
Write-Host "Executing docker build . -t java-ctl"
docker build . -t java-ctl
Write-Host "Executing az acr login --name $(ContainerRegistryName) -u $(ContainerRegistryUserName) -p $(java-cosmos-container-registry-pwd)"
az acr login --name $(ContainerRegistryName) -u $(ContainerRegistryUserName) -p $(java-cosmos-container-registry-pwd)
Write-Host "Executing docker tag java-ctl $(ContainerRegistryUrl)/javactl/benchmark"
docker tag java-ctl $(ContainerRegistryUrl)/javactl/benchmark
Write-Host "Executing docker push $(ContainerRegistryUrl)/javactl/benchmark"
docker push $(ContainerRegistryUrl)/javactl/benchmark
displayName: 'Build and push docker image to registry'