aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2019-09-14 22:44:35 +0200
committerGravatar GitHub <[email protected]>2019-09-14 22:44:35 +0200
commitb16ecf8b8aee8be91dd28d56dc922f0423862759 (patch)
treee5fabcb4ad47f8abe3e82ee81811dafb9576806e
parentMerge pull request #42 from python-discord/revitalisation (diff)
parentCI: use script instead of Docker task to push images (diff)
Merge pull request #43 from python-discord/revitalisation
CI: use script instead of Docker task to push images
-rw-r--r--azure-pipelines.yml21
1 files changed, 3 insertions, 18 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index f09dc99..33d3efc 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -186,7 +186,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.
- - task: Docker@2
+ - script: docker push pythondiscord/snekbox-base:latest
displayName: 'Push Base Image'
condition: >
and(
@@ -198,13 +198,8 @@ jobs:
eq(variables.VENV_CHANGED, True)
)
)
- inputs:
- command: push
- containerRegistry: DockerHubV2
- repository: pythondiscord/snekbox-base
- tags: latest
- - task: Docker@2
+ - script: docker push pythondiscord/snekbox-venv:latest
displayName: 'Push Virtual Environment Image'
condition: >
and(
@@ -215,17 +210,7 @@ jobs:
eq(variables.VENV_CHANGED, True)
)
)
- inputs:
- command: push
- containerRegistry: DockerHubV2
- repository: pythondiscord/snekbox-venv
- tags: latest
- - task: Docker@2
+ - script: docker push pythondiscord/snekbox:latest
displayName: 'Push Final Image'
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
- inputs:
- command: push
- containerRegistry: DockerHubV2
- repository: pythondiscord/snekbox
- tags: latest