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