From ff5aa70461ce0bd2c6ad86eba0b97b6199b7efa9 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Wed, 25 Sep 2019 07:49:52 -0500 Subject: [PATCH] add conditions for login and push --- azure-pipelines.web.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/azure-pipelines.web.yaml b/azure-pipelines.web.yaml index 1f82d7d77..76e83eefc 100644 --- a/azure-pipelines.web.yaml +++ b/azure-pipelines.web.yaml @@ -45,6 +45,7 @@ steps: inputs: containerRegistry: "GitHub Docker Package Registry - FilterLists" command: "login" + condition: "and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))" - task: Docker@2 displayName: push @@ -52,6 +53,7 @@ steps: containerRegistry: "GitHub Docker Package Registry - FilterLists" repository: "collinbarrett/filterlists" command: "push" + condition: "and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))" tags: | latest $(Build.BuildId)