Push Docker container to registry

This commit is contained in:
Chris Cheetham 2021-09-21 08:37:14 -04:00
Родитель e89fb0319c
Коммит 216b57b4d6
1 изменённых файлов: 17 добавлений и 2 удалений

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

@ -19,8 +19,8 @@ stages:
- stage: test
displayName: Test
jobs:
- job: test
displayName: Test
- job: dotnetTest
displayName: dotnet test
pool:
vmImage: ubuntu-latest
steps:
@ -33,3 +33,18 @@ stages:
displayName: dotnet test
inputs:
command: test
- stage: Deploy
displayName: Deploy
dependsOn: dotnetTest
condition:
not(eq(variables['build.reason'], 'PullRequest'))
jobs:
- job: pushImage
displayName: Push Image to Registry
inputs:
command: buildAndPush
containerRegistry: SteeltoeContainerRegistry
repository: net-core-tool-service
tags: |
$(Build.BuildId)
latest