diff options
author | 2019-09-14 13:42:31 -0700 | |
---|---|---|
committer | 2019-09-14 13:42:31 -0700 | |
commit | 2e270d77ddfd03ec2ab961e43bc500dfda1b4af4 (patch) | |
tree | 6967c483a918d51c2026990de4511b5224b2f32e | |
parent | CI: specify container registry for Docker push tasks (diff) |
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 |