I\'m trying to create a deployment pipeline to deploy my image to Kubernetes cluster. The first step in this process is to create an image based on the docker file. The docker
For me it worked with following yaml settings
steps:
task: Docker@2
displayName: Build docker
inputs:
command: 'buildAndPush'
Dockerfile: '**/Dockerfile'
buildContext: '$(Build.Repository.LocalPath)'
The dockerfile can stay as Visual Studio generated it.