From 581ea3efaa6114778f53ca6173aa57864131c665 Mon Sep 17 00:00:00 2001 From: Justin Paul Date: Sat, 28 Jan 2023 11:23:31 -0500 Subject: [PATCH] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index f1b6a49..4865429 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -10,20 +10,10 @@ resources: variables: tag: 'recklessop/$(Build.BuildId)' - -stages: -- stage: Build - displayName: Build image - jobs: - - job: Build - displayName: Build - pool: - vmImage: ubuntu-latest - steps: - - task: Docker@2 - displayName: Build an image - inputs: - command: build - dockerfile: '$(Build.SourcesDirectory)/Dockerfile' - tags: | - $(tag) + +- task: Docker@2 + inputs: + containerRegistry: 'recklessop-docker-hub' + repository: 'zerto-exporter' + command: 'buildAndPush' + Dockerfile: '**/Dockerfile' \ No newline at end of file