From 80e308a32d22f6e9869d5dbdcedd9b602fc8bdfa Mon Sep 17 00:00:00 2001 From: scragly <29337040+scragly@users.noreply.github.com> Date: Fri, 27 Sep 2019 23:07:48 +1000 Subject: Ensure docker containers are published only for master branch builds. --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3