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