From 2e270d77ddfd03ec2ab961e43bc500dfda1b4af4 Mon Sep 17 00:00:00 2001 From: MarkKoz Date: Sat, 14 Sep 2019 13:42:31 -0700 Subject: CI: use script instead of Docker task to push images --- azure-pipelines.yml | 21 +++------------------ 1 file 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 -- cgit v1.2.3