【发布时间】:2021-03-24 21:37:35
【问题描述】:
我正在尝试使用默认的 Azure DevOps 模板将图像推送到 AKS:
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
这会导致以下错误:
##[error]Path does not exist: /home/vsts/work/1/s/manifests
我尝试过使用默认发布任务
- task: PublishPipelineArtifact@1
inputs:
artifactName: 'manifests'
path: 'manifests'
但这并没有改变任何东西。有人可以解释一下,这里发生了什么以及为什么 Msft 的默认模板不起作用?
【问题讨论】:
标签: docker kubernetes azure-devops yaml