From 91d808be6681a59f2e2e623eb655008d6854485d Mon Sep 17 00:00:00 2001 From: Justin Paul Date: Sat, 28 Jan 2023 12:02:06 -0500 Subject: [PATCH] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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