Skip to content

Instantly share code, notes, and snippets.

@abhishek-sisodiya
Last active August 14, 2019 06:58
Show Gist options
  • Save abhishek-sisodiya/d305d248bb684f8b9d38795ae00b40c2 to your computer and use it in GitHub Desktop.
Save abhishek-sisodiya/d305d248bb684f8b9d38795ae00b40c2 to your computer and use it in GitHub Desktop.
variables:
dockerId: weatherman
pswd:
imageName: weathermanjava5639
steps:
- script: |
docker build -t $(dockerId).azurecr.io/$(imageName) .
docker login -u $(dockerId) -p $(pswd) $(dockerId).azurecr.io
docker push $(dockerId).azurecr.io/$(imageName)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment