From a5ce7e6890dba1f04d0a57193f0a49dcd44eee6b Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Mon, 30 Sep 2019 21:16:16 +0200 Subject: [PATCH] Fix azure pipline triggers and conditions. --- azure-pipelines.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yaml b/azure-pipelines.yaml index 636e6918..f158d6d2 100644 --- a/azure-pipelines.yaml +++ b/azure-pipelines.yaml @@ -1,3 +1,11 @@ +trigger: + tags: + include: + - '*' + branches: + include: + - '*' + pool: vmImage: 'ubuntu-latest' @@ -58,7 +66,7 @@ steps: -t koenkk/zigbee2mqtt:latest -t "koenkk/zigbee2mqtt:$TAG" \ . displayName: 'Docker build release' - condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'), startsWith(variables['Build.SourceBranch'], 'refs/tags/'), ne(variables['Build.Reason'], 'PullRequest')) + condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'), ne(variables['Build.Reason'], 'PullRequest')) # Trigger downstream - bash: |