Automatic builds for Azure Container Registry

Azure Container Registry offers similar functionality to Docker Hub for the automation of Docker image builds on code push. The pipeline is highly customizable and can support building multiple container images at once, but in this example, we will focus on automating a single image build on the GitHub repository code push.

For more advanced multi-step and multi-container scenarios, check out the official documentation: https://docs.microsoft.com/en-us/azure/container-registry/container-registry-tutorial-multistep-task.

Integrating ACR and GitHub can be performed as follows:

  1. Create a new GitHub repository and push the Docker image source code. In this example, we will use source code from https://github.com/PacktPublishing/Hands-On-Kubernetes-on-Windows/tree/master/Chapter03/04_iis-demo-index ...

Get Hands-On Kubernetes on Windows now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.