Member-only story
Publishing Docker Images to Azure Container Registry with Pulumi
Effortlessly Publish Docker Images to Azure Container Registry with Pulumi and TypeScript!
In this article, we will guide you through the steps of constructing and uploading Docker images to Azure Container Registry (ACR) using Pulumi and TypeScript. Pulumi provides an infrastructure as code solution that allows developers to utilise familiar programming languages for managing cloud resources.
Step 1: Configuring Pulumi
Begin by retrieving the necessary configuration values using Pulumi’s configuration management feature. The credentials required to connect to ACR are stored in environment variables, which we will access first.
Step 2: Getting the Git Commit Hash
To version our Docker image correctly, we’ll fetch the current Git commit hash. This enables us to uniquely tag our Docker image with the commit it was built from.