Created
May 31, 2017 15:36
-
-
Save devigned/db709c847664e117ceb69f2600292638 to your computer and use it in GitHub Desktop.
Push Habitat Rails todo image to private image registry
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# fetch the hostname of the Azure Container Registry | |
registry=$(az acr list -g habitat-k8s --query "[?starts_with(name, 'habk8s')] | [0].loginServer" -o tsv) | |
# tag the latest image with our registry hostname | |
docker tag devigned/rails-todo:latest ${registry}/rails-todo:latest | |
# push the image to our private registry | |
docker push ${registry}/rails-todo:latest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment