Skip to content

Instantly share code, notes, and snippets.

@devigned
Created May 31, 2017 15:36
Show Gist options
  • Save devigned/db709c847664e117ceb69f2600292638 to your computer and use it in GitHub Desktop.
Save devigned/db709c847664e117ceb69f2600292638 to your computer and use it in GitHub Desktop.
Push Habitat Rails todo image to private image registry
# 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