From e43bb09d60c6eba7af125660d0bf2b23dfec7cbf Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 12 Jun 2020 18:18:11 -0400 Subject: [PATCH] Update conditionals to final values (master+tag) --- .ci/azure-pipelines-package.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.ci/azure-pipelines-package.yml b/.ci/azure-pipelines-package.yml index 9c048f90ed..5cc3241926 100644 --- a/.ci/azure-pipelines-package.yml +++ b/.ci/azure-pipelines-package.yml @@ -22,11 +22,11 @@ jobs: - script: 'docker image ls -a && docker run -v $(pwd)/deployment/dist:/dist -v $(pwd):/jellyfin -e IS_UNSTABLE="yes" -e BUILD_ID=$(Build.BuildNumber) jellyfin-web-$(BuildConfiguration)' displayName: 'Run Dockerfile (unstable)' - condition: eq(variables['Build.SourceBranch'], 'refs/heads/package') + condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/master') - script: 'docker image ls -a && docker run -v $(pwd)/deployment/dist:/dist -v $(pwd):/jellyfin -e IS_UNSTABLE="no" -e BUILD_ID=$(Build.BuildNumber) jellyfin-web-$(BuildConfiguration)' displayName: 'Run Dockerfile (stable)' - condition: ne(variables['Build.SourceBranch'], 'refs/heads/package') + condition: startsWith(variables['Build.SourceBranch'], 'refs/tags') - task: PublishPipelineArtifact@1 displayName: 'Publish Release' @@ -51,7 +51,7 @@ jobs: steps: - task: SSH@0 displayName: 'Collect packages into repositories (unstable)' - condition: eq(variables['Build.SourceBranch'], 'refs/heads/package') + condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/master') inputs: sshEndpoint: repository runOptions: 'inline' @@ -59,7 +59,7 @@ jobs: - task: SSH@0 displayName: 'Collect packages into repositories (stable)' - condition: ne(variables['Build.SourceBranch'], 'refs/heads/package') + condition: startsWith(variables['Build.SourceBranch'], 'refs/tags') inputs: sshEndpoint: repository runOptions: 'inline'