mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-16 18:38:25 -07:00
31 lines
850 B
YAML
31 lines
850 B
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 jellyfin-web-$(BuildConfiguration)'
|
|
displayName: 'Run Dockerfile'
|
|
|
|
- task: PublishPipelineArtifact@1
|
|
displayName: 'Publish Release'
|
|
inputs:
|
|
targetPath: '$(Build.SourcesDirectory)/deployment/dist'
|
|
artifactName: 'jellyfin-web-$(BuildConfiguration)'
|