I am trying to push an image to AKS using the default Azure DevOps template:
stages:
- stage: Build
displayName: Build stage
jobs:
- job: Build
displayName: Build
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)
- upload: manifests
artifact: manifests
Which results in the following error:
##[error]Path does not exist: /home/vsts/work/1/s/manifests
I've tried using the default Publish task
- task: PublishPipelineArtifact@1
inputs:
artifactName: 'manifests'
path: 'manifests'
but this did not change anything. Can somebody please explain, what is happening here and why the default template from Msft is not working?