diff options
-rw-r--r-- | azure-pipelines.yml | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 2fa8a1a..4f60a7e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -178,7 +178,7 @@ jobs: # Push images only after they've all successfully been built. # These have the same conditions as the build tasks. However, for safety, # a condition for not being a pull request is added. - - script: docker push pythondiscord/snekbox-base:latest + - task: Docker@2 displayName: 'Push Base Image' condition: > and( @@ -190,8 +190,13 @@ jobs: eq(variables.VENV_CHANGED, True) ) ) + inputs: + command: push + containerRegistry: DockerHubV2 + repository: pythondiscord/snekbox-base + tags: latest - - script: docker push pythondiscord/snekbox-venv:latest + - task: Docker@2 displayName: 'Push Virtual Environment Image' condition: > and( @@ -202,7 +207,17 @@ jobs: eq(variables.VENV_CHANGED, True) ) ) + inputs: + command: push + containerRegistry: DockerHubV2 + repository: pythondiscord/snekbox-venv + tags: latest - - script: docker push pythondiscord/snekbox:latest + - task: Docker@2 displayName: 'Push Final Image' condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest')) + inputs: + command: push + containerRegistry: DockerHubV2 + repository: pythondiscord/snekbox + tags: latest |