diff options
| author | Anthony Lavado <anthony@lavado.ca> | 2020-07-27 18:58:28 -0700 |
|---|---|---|
| committer | Joshua M. Boniface <joshua@boniface.me> | 2020-08-02 20:35:31 -0400 |
| commit | 35d3ad1a5584b9d890059e74539b21bd85e9cdeb (patch) | |
| tree | adb515d916db6b5396e815e63280695de0761911 | |
| parent | 02f36373c20510351c8abbfe155e9bc7458faef4 (diff) | |
Merge pull request #3723 from joshuaboniface/fix-ci-docker
Get and tag with the actual release version in CI
(cherry picked from commit b207907e1b8af2859f3148593e3bfd901ce828ea)
Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
| -rw-r--r-- | .ci/azure-pipelines-package.yml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/.ci/azure-pipelines-package.yml b/.ci/azure-pipelines-package.yml index 272111299..64d40e7f5 100644 --- a/.ci/azure-pipelines-package.yml +++ b/.ci/azure-pipelines-package.yml @@ -80,7 +80,15 @@ jobs: pool: vmImage: 'ubuntu-latest' + variables: + - name: JellyfinVersion + value: 0.0.0 + steps: + - script: echo '##vso[task.setvariable variable=JellyfinVersion]$( awk -F "/" "{ print $NF }" <<<"$(Build.SourceBranch)" | sed "s/^v//" )' + displayName: Set release version (stable) + condition: startsWith(variables['Build.SourceBranch'], 'refs/tags') + - task: Docker@2 displayName: 'Push Unstable Image' condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/master') @@ -105,7 +113,7 @@ jobs: containerRegistry: Docker Hub tags: | stable-$(Build.BuildNumber)-$(BuildConfiguration) - stable-$(BuildConfiguration) + $(JellyfinVersion)-$(BuildConfiguration) - job: CollectArtifacts displayName: 'Collect Artifacts' |
