- task: Docker@2
inputs:
containerRegistry: 'my-registry'
repository: '$(System.TeamProject)/$(Build.Repository.Name)'
command: 'buildAndPush'
Dockerfile: 'Dockerfile'
tags: |
$(Build.SourceVersion)
$(Build.SourceBranchName)
is it possible to do multiple tags for one image build?
Need to add multiple image tag for one docker build in azure pipelines
your question contains the answer: