Automating the deployment
In this section, we’ll learn how to automate the deployment process for container-based architectures. We’ll be employing similar techniques that we saw in Chapter 8 when we took this same journey down the Amazon. As a result, we’ll focus on what changes we need to make when we want to deploy to Microsoft Azure and AKS.
Docker
In Chapter 8, we covered each step of the GitHub Actions workflow that executes Docker to build, tag, and push our Docker container images. Thanks to the nature of Docker’s cloud-agnostic architecture, this overwhelmingly stays the same. The only thing that changes is the way we must configure Docker so that it targets our Azure container registry.
Like in Chapter 8, we need to connect to the container registry that we provisioned with Terraform. On Azure, that means we’ll need the Entra ID service principal’s client ID and client secret:
- name: Login to Azure Container Registry...