Push Docker image upon successful assembly

This commit is contained in:
Chris Cheetham 2021-09-28 08:52:29 -04:00
Родитель df7dd9b34d
Коммит d24dc32925
1 изменённых файлов: 20 добавлений и 0 удалений

Просмотреть файл

@ -114,3 +114,23 @@ stages:
inputs:
targetPath: manifests
artifactName: manifests
- stage: Deploy
displayName: Deploy
dependsOn: assemble
condition:
not(eq(variables['build.reason'], 'PullRequest'))
jobs:
- job: push
displayName: Push
pool:
vmImage: ubuntu-latest
steps:
- task: Docker@2
displayName: Build and Push
inputs:
command: buildAndPush
containerRegistry: SteeltoeContainerRegistry
repository: initializr-api
tags: |
$(Build.BuildId)
latest