I am attempting to deploy two .Net Core applications to Azure Kubernetes using DevOps. The default pipeline only builds and deploys the first project I've added.
I have created a single solution with two solution folders, each containing a .Net Core project. I have added orchestration support to both projects and created an Azure pipeline using the "wizard" in DevOps. I have added the secondary project after successfully deploying the first project. I thought that the issue exists because the Docker Registry Service Connection did not contain the new project, so I've deleted that and re-created the connection, but it still only deploys the first project. I am using Azure Git.
The azure-pipeline.yaml is pretty standard. I have accepted the default that was created when the pipeline was created. Here is my buildAndPush stage.
stages:
- stage: Build
displayName: Build stage
jobs:
- job: Build
displayName: Build job
pool:
vmImage: $(vmImageName)
steps:
- task: Docker@2
displayName: Build and push an image to container registry
inputs:
command: buildAndPush
repository: $(imageRepository)
dockerfile: $(dockerfilePath)
containerRegistry: $(dockerRegistryServiceConnection)
tags: |
$(tag)
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'manifests'
targetPath: 'manifests'
How do I get it to build and deploy the other remaining project?