I'm attempting to learn Azure DevOps Pipelines and AKS. The ultimate goal would to Build and deploy to Azure Kubernetes Service, but I'm breaking this into smaller parts so understand what is going on at each stage.
Thus, my current goal is to Build and push to Azure Container Registry.
I'm working with a pretty basic monorepo which has this simplified structure:
acr-test/
client/
Dockerfile
db/
Dockerfile
server/
Dockerfile
I'd like to generate an image for each part of the application so that a arc-test-client
and arc-test-server
is generated.
What is currently happening when I "Create Pipeline" in Azure DevOps and let it build the azure-pipelines.yml
is it just finds the first Dockerfile
and bases all the parameters on it, ignoring the other ones.
Some I'm curious:
- Is it possible to create multiple images from a single
azure-pipelines.yml
? - Do I need multiple
.yml
for eachDockerfile
? - Do I need to write a separate
.sh
to build and push these separately (example)? - Or is this simply not possible with a mono-repo?