我遵循微软网站的例子:
https://learn.microsoft.com/en-us/azure/devops/pipelines/ecosystems/containers/build-image?view=azure-devops
但我得到以下问题
Starting: Build an image
==============================================================================
Task : Docker
Description : Build or push Docker images, login or logout, start or stop containers, or run a Docker command
Version : 2.192.0
Author : Microsoft Corporation
Help : https://aka.ms/azpipes-docker-tsg
==============================================================================
##[error]Unhandled: No Dockerfile matching /home/vsts/work/1/s/app/Dockerfile was found
为什么当参数状态为'app/Dockerfile'时,它试图在'/home/vsts/work/1/s/'目录中找到文件?
构建任务试图在app/Dockerfile
下的代理构建目录中找到您的Dockerfile
。你需要检查确保你的devops管道正确地连接到你引用的repo,并相应地构建。