| 
														
															@@ -35,11 +35,11 @@ jobs: 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   steps: 
														 | 
														
														 | 
														
															   steps: 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   - script: 'docker build -f deployment/Dockerfile.$(BuildConfiguration) -t jellyfin-server-$(BuildConfiguration) deployment' 
														 | 
														
														 | 
														
															   - script: 'docker build -f deployment/Dockerfile.$(BuildConfiguration) -t jellyfin-server-$(BuildConfiguration) deployment' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     displayName: 'Build Dockerfile' 
														 | 
														
														 | 
														
															     displayName: 'Build Dockerfile' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    condition: or(startsWith(variables['Build.SourceBranch'], 'refs/tags'), startsWith(variables['Build.SourceBranch'], 'refs/heads/azure-ci')) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    condition: or(startsWith(variables['Build.SourceBranch'], 'refs/tags'), 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="yes" -e BUILD_ID=$(Build.BuildNumber) jellyfin-server-$(BuildConfiguration)' 
														 | 
														
														 | 
														
															   - 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-server-$(BuildConfiguration)' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     displayName: 'Run Dockerfile (unstable)' 
														 | 
														
														 | 
														
															     displayName: 'Run Dockerfile (unstable)' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/azure-ci') 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    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-server-$(BuildConfiguration)' 
														 | 
														
														 | 
														
															   - 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-server-$(BuildConfiguration)' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     displayName: 'Run Dockerfile (stable)' 
														 | 
														
														 | 
														
															     displayName: 'Run Dockerfile (stable)' 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -47,14 +47,14 @@ jobs: 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															   - task: PublishPipelineArtifact@1 
														 | 
														
														 | 
														
															   - task: PublishPipelineArtifact@1 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     displayName: 'Publish Release' 
														 | 
														
														 | 
														
															     displayName: 'Publish Release' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    condition: or(startsWith(variables['Build.SourceBranch'], 'refs/tags'), startsWith(variables['Build.SourceBranch'], 'refs/heads/azure-ci')) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    condition: or(startsWith(variables['Build.SourceBranch'], 'refs/tags'), startsWith(variables['Build.SourceBranch'], 'refs/heads/master')) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     inputs: 
														 | 
														
														 | 
														
															     inputs: 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       targetPath: '$(Build.SourcesDirectory)/deployment/dist' 
														 | 
														
														 | 
														
															       targetPath: '$(Build.SourcesDirectory)/deployment/dist' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       artifactName: 'jellyfin-server-$(BuildConfiguration)' 
														 | 
														
														 | 
														
															       artifactName: 'jellyfin-server-$(BuildConfiguration)' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															   - task: CopyFilesOverSSH@0 
														 | 
														
														 | 
														
															   - task: CopyFilesOverSSH@0 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     displayName: 'Upload artifacts to repository server' 
														 | 
														
														 | 
														
															     displayName: 'Upload artifacts to repository server' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    condition: or(startsWith(variables['Build.SourceBranch'], 'refs/tags'), startsWith(variables['Build.SourceBranch'], 'refs/heads/azure-ci')) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    condition: or(startsWith(variables['Build.SourceBranch'], 'refs/tags'), startsWith(variables['Build.SourceBranch'], 'refs/heads/master')) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     inputs: 
														 | 
														
														 | 
														
															     inputs: 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       sshEndpoint: repository 
														 | 
														
														 | 
														
															       sshEndpoint: repository 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       sourceFolder: '$(Build.SourcesDirectory)/deployment/dist' 
														 | 
														
														 | 
														
															       sourceFolder: '$(Build.SourcesDirectory)/deployment/dist' 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -79,7 +79,7 @@ jobs: 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   steps: 
														 | 
														
														 | 
														
															   steps: 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   - task: Docker@2 
														 | 
														
														 | 
														
															   - task: Docker@2 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     displayName: 'Push Unstable Image' 
														 | 
														
														 | 
														
															     displayName: 'Push Unstable Image' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/azure-ci') 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/master') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     inputs: 
														 | 
														
														 | 
														
															     inputs: 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       repository: 'jellyfin/jellyfin-server' 
														 | 
														
														 | 
														
															       repository: 'jellyfin/jellyfin-server' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       command: buildAndPush 
														 | 
														
														 | 
														
															       command: buildAndPush 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -116,7 +116,7 @@ jobs: 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   steps: 
														 | 
														
														 | 
														
															   steps: 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   - task: SSH@0 
														 | 
														
														 | 
														
															   - task: SSH@0 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     displayName: 'Update Unstable Repository' 
														 | 
														
														 | 
														
															     displayName: 'Update Unstable Repository' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/azure-ci') 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/master') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     inputs: 
														 | 
														
														 | 
														
															     inputs: 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       sshEndpoint: repository 
														 | 
														
														 | 
														
															       sshEndpoint: repository 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       runOptions: 'inline' 
														 | 
														
														 | 
														
															       runOptions: 'inline' 
														 |