diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 12f1469..1c47284 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -20,10 +20,20 @@ stages: pool: vmImage: ubuntu-latest steps: + - task: Docker@2 + inputs: + containerRegistry: 'recklessop-docker-hub' + command: 'login' - task: Docker@2 inputs: containerRegistry: 'recklessop-docker-hub' repository: 'zerto-exporter' command: 'buildAndPush' Dockerfile: '**/Dockerfile' - tags: 'recklessop/zerto-exporter:$(Build.BuildId)' \ No newline at end of file + tags: | + $(Build.BuildId) + latest + - task: Docker@2 + inputs: + containerRegistry: 'recklessop-docker-hub' + command: 'logout' \ No newline at end of file