aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2019-05-13 01:18:16 -0700
committerGravatar MarkKoz <[email protected]>2019-05-13 01:18:16 -0700
commit6fd72682c07e8a43ee0680254874f140cd108a15 (patch)
tree41e0a5a1d18981524bf757be882b3752bb95a8ac
parentUse alternate syntax for variables (diff)
Revert "Remove pushing images for testing CI"
This reverts commit c66b10f8820907fb7065cbede2e87c541da6029b.
-rw-r--r--azure-pipelines.yml7
1 files changed, 4 insertions, 3 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 29ed3db..3f4c236 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -32,6 +32,7 @@ jobs:
- job: build
displayName: 'Build'
dependsOn: test
+ condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
variables:
BASE_CHANGED: true
@@ -89,13 +90,13 @@ jobs:
- script: docker build -t pythondiscord/snekbox:latest -f docker/Dockerfile .
displayName: 'Build Final Image'
- - script: echo "Base image push simulation"
+ - script: docker push pythondiscord/snekbox-base:latest
displayName: 'Push Base Image to Dockerhub'
condition: and(succeeded(), eq(variables.BASE_CHANGED, 'true'))
- - script: echo "Venv image push simulation"
+ - script: docker push pythondiscord/snekbox-venv:latest
displayName: 'Push Virtual Environment Image to Dockerhub'
condition: and(succeeded(), or(eq(variables.BASE_CHANGED, 'true'), eq(variables.VENV_CHANGED, 'true')))
- - script: echo "Final image push simulation"
+ - script: docker push pythondiscord/snekbox:latest
displayName: 'Push Final Image to Dockerhub'