aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar scragly <[email protected]>2019-09-27 23:27:09 +1000
committerGravatar GitHub <[email protected]>2019-09-27 23:27:09 +1000
commitb19c5f96e619993174deeec1d0496722028a114d (patch)
tree419d4c4ba205a744346cea61dd3afa7000958336
parentMerge pull request #251 from python-discord/update-linting (diff)
parentEnsure docker containers are published only for master branch builds. (diff)
Ensure docker containers are published only for master branch bu… (#264)
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 b3d4e6da..f5ca7f78 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -66,7 +66,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