Update azure-pipelines.yml for Azure Pipelines

This commit is contained in:
2023-01-28 11:23:31 -05:00
parent 6bbc8fd53f
commit 581ea3efaa
+7 -17
View File
@@ -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'