Skip to content

Commit

Permalink
Get and tag with actual release version in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaboniface committed Jul 28, 2020
1 parent 4973b6b commit f9f7142
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .ci/azure-pipelines-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,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')
Expand All @@ -84,7 +92,7 @@ jobs:
containerRegistry: Docker Hub
tags: |
stable-$(Build.BuildNumber)
stable
$(JellyfinVersion)
- job: CollectArtifacts
displayName: 'Collect Artifacts'
Expand Down

0 comments on commit f9f7142

Please sign in to comment.