Azure Pipeline to build docker images fails using same docker file in Visual Studio

后端 未结 5 1384
执笔经年
执笔经年 2021-02-19 09:43

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

5条回答
  •  名媛妹妹
    2021-02-19 10:27

    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.

提交回复
热议问题