aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2019-09-20 22:20:03 -0700
committerGravatar MarkKoz <[email protected]>2019-09-20 22:20:03 -0700
commit910d50ca283e77bbc4a2ca101fbacb8062592d02 (patch)
treef3d7362bc147a6ade834ed8babc2729df9ff25e7
parentCI: ditch Docker v2 tasks (diff)
Revert "CI: use script instead of Docker task to push images"
This reverts commit 2e270d77ddfd03ec2ab961e43bc500dfda1b4af4.
-rw-r--r--azure-pipelines.yml21
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