diff options
author | 2019-09-14 22:44:35 +0200 | |
---|---|---|
committer | 2019-09-14 22:44:35 +0200 | |
commit | b16ecf8b8aee8be91dd28d56dc922f0423862759 (patch) | |
tree | e5fabcb4ad47f8abe3e82ee81811dafb9576806e | |
parent | Merge pull request #42 from python-discord/revitalisation (diff) | |
parent | CI: 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.yml | 21 |
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 |