aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar scragly <[email protected]>2019-09-27 23:07:48 +1000
committerGravatar scragly <[email protected]>2019-09-27 23:09:30 +1000
commit80e308a32d22f6e9869d5dbdcedd9b602fc8bdfa (patch)
treef7451e9ae1c1d099f26e98445e8e871a517225fb
parentUpdate flake8-annotations & fix missing lints (#461) (diff)
Ensure docker containers are published only for master branch builds.
-rw-r--r--azure-pipelines.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index b5ecab83c..c22bac089 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -50,7 +50,7 @@ jobs:
- job: build
displayName: 'Build & Push Container'
dependsOn: 'test'
- condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
+ condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
steps:
- task: Docker@2