mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-16 18:38:25 -07:00
46 lines
1.4 KiB
YAML
46 lines
1.4 KiB
YAML
jobs:
|
|
- job: Package
|
|
displayName: 'Package'
|
|
|
|
strategy:
|
|
matrix:
|
|
CentOS:
|
|
BuildConfiguration: centos
|
|
Debian:
|
|
BuildConfiguration: debian
|
|
Fedora:
|
|
BuildConfiguration: fedora
|
|
Portable:
|
|
BuildConfiguration: portable
|
|
|
|
pool:
|
|
vmImage: 'ubuntu-latest'
|
|
|
|
steps:
|
|
- script: 'docker build -f deployment/Dockerfile.$(BuildConfiguration) -t jellyfin-web-$(BuildConfiguration) deployment'
|
|
displayName: 'Build Dockerfile'
|
|
|
|
- script: 'docker image ls -a && docker run -v $(pwd)/deployment/dist:/dist -v $(pwd):/jellyfin -e GIT_BRANCH=$(Build.SourceBranch) -e BUILD_ID=$(Build.BuildNumber) jellyfin-web-$(BuildConfiguration)'
|
|
displayName: 'Run Dockerfile'
|
|
|
|
- task: PublishPipelineArtifact@1
|
|
displayName: 'Publish Release'
|
|
inputs:
|
|
targetPath: '$(Build.SourcesDirectory)/deployment/dist'
|
|
artifactName: 'jellyfin-web-$(BuildConfiguration)'
|
|
|
|
- task: CopyFilesOverSSH@0
|
|
displayName: 'Upload artifacts to repository server'
|
|
inputs:
|
|
sshEndpoint: repository
|
|
sourceFolder: '$(Build.SourcesDirectory)/deployment/dist'
|
|
contents: '**'
|
|
targetFolder: '/srv/repository/incoming/azure/$(BuildConfiguration)'
|
|
|
|
- task: SSH@0
|
|
displayName: 'Collect packages into repositories'
|
|
inputs:
|
|
sshEndpoint: repository
|
|
runOptions: 'inline'
|
|
inline: '/srv/repository/collect-server.azure.sh /srv/repository/incoming/azure $(Build.BuildNumber) unstable'
|