Publish images to Azure Container Registry from Bitbucket Pipelines

bitbucket pipelines pushing to azure container registry with dotnet publish

Today is part 3 of our miniseries on dotnet publish and Docker images. In the first one we reviewed how we can generate docker images locally, in the second one we pushed our image to Azure Container Registry with Service Principal authentication from our local environment, and today we will publish our image to Azure Container Registry from our CI build, namely Bitbucket Pipelines.


>>> Continue reading <<<

Create docker images with dotnet publish

local docker desktop with an image pushed by dotnet publish

Docker is a very convenient tool for writing, testing and especially for deploying software. Wide adoption of Docker Containers by all Cloud Providers has made it the default approach for enterprise software deployments.

Historically we have been using a combination of Dockerfile and Docker CLI to build and publish docker images. Starting with .NET 7, we can achieve the same by using dotnet publish command.

Today we are exploring how to containerize a .NET application with dotnet publish, configure it inside .csproj file and publish to the local Docker Desktop.


>>> Continue reading <<<

How to fix 'This section should be a list (it is currently defined as a map).' in bitbucket-pipelines.yml

bitbucket pipeline with configuration error saying This section should be a list (it is currently defined as a map)

We’ve all been there, editing bitbucket-pipelines.yml can be challenging. Bitbucket’s online validator is very handy, but it can produce false positives sometimes.

In this article, we take a look at bitbucket-pipelines.yml which passes Bitbucket’s validator but fails in the pipeline with This section should be a list (it is currently defined as a map). error. We also discuss tools that provide better local validation.


>>> Continue reading <<<