Update azure-pipelines.yml for Azure Pipelines

This commit is contained in:
2023-01-28 11:47:28 -05:00
parent 614f655cc2
commit ceaf9b34cc
+7 -7
View File
@@ -9,7 +9,7 @@ resources:
- repo: self
variables:
tag: 'recklessop/$(Build.BuildId)'
tag: '$(Build.BuildId)'
stages:
- stage: Build
@@ -23,14 +23,14 @@ stages:
- task: Docker@2
displayName: Build an image
inputs:
command: build
dockerfile: '$(Build.SourcesDirectory)/Dockerfile'
tags: |
$(tag)
containerRegistry: 'recklessop-docker-hub'
repository: 'zerto-exporter'
command: 'build'
Dockerfile: '**/Dockerfile'
tags: '$(tag)'
- task: Docker@2
inputs:
containerRegistry: 'recklessop-docker-hub'
repository: 'zerto-exporter'
command: 'push'
tags: |
$(tag)
tags: '$(tag)'