forked from jellyfin/jellyfin-web
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
541 changed files
with
35,841 additions
and
26,851 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
jobs: | ||
- job: Build | ||
displayName: 'Build' | ||
|
||
strategy: | ||
matrix: | ||
Development: | ||
BuildConfiguration: development | ||
Production: | ||
BuildConfiguration: production | ||
Standalone: | ||
BuildConfiguration: standalone | ||
|
||
pool: | ||
vmImage: 'ubuntu-latest' | ||
|
||
steps: | ||
- task: NodeTool@0 | ||
displayName: 'Install Node' | ||
inputs: | ||
versionSpec: '12.x' | ||
|
||
- task: Cache@2 | ||
displayName: 'Check Cache' | ||
inputs: | ||
key: 'yarn | yarn.lock' | ||
path: 'node_modules' | ||
cacheHitVar: CACHE_RESTORED | ||
|
||
- script: 'yarn install --frozen-lockfile' | ||
displayName: 'Install Dependencies' | ||
condition: ne(variables.CACHE_RESTORED, 'true') | ||
|
||
- script: 'yarn build:development' | ||
displayName: 'Build Development' | ||
condition: eq(variables['BuildConfiguration'], 'development') | ||
|
||
- script: 'yarn build:production' | ||
displayName: 'Build Production' | ||
condition: eq(variables['BuildConfiguration'], 'production') | ||
|
||
- script: 'yarn build:standalone' | ||
displayName: 'Build Standalone' | ||
condition: eq(variables['BuildConfiguration'], 'standalone') | ||
|
||
- script: 'test -d dist' | ||
displayName: 'Check Build' | ||
|
||
- script: 'mv dist jellyfin-web' | ||
displayName: 'Rename Directory' | ||
|
||
- task: ArchiveFiles@2 | ||
displayName: 'Archive Directory' | ||
inputs: | ||
rootFolderOrFile: 'jellyfin-web' | ||
includeRootFolder: true | ||
archiveFile: 'jellyfin-web-$(BuildConfiguration)' | ||
|
||
- task: PublishPipelineArtifact@1 | ||
displayName: 'Publish Release' | ||
inputs: | ||
targetPath: '$(Build.SourcesDirectory)/jellyfin-web-$(BuildConfiguration).zip' | ||
artifactName: 'jellyfin-web-$(BuildConfiguration)' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
jobs: | ||
- job: Lint | ||
displayName: 'Lint' | ||
|
||
pool: | ||
vmImage: 'ubuntu-latest' | ||
|
||
steps: | ||
- task: NodeTool@0 | ||
displayName: 'Install Node' | ||
inputs: | ||
versionSpec: '12.x' | ||
|
||
- task: Cache@2 | ||
displayName: 'Check Cache' | ||
inputs: | ||
key: 'yarn | yarn.lock' | ||
path: 'node_modules' | ||
cacheHitVar: CACHE_RESTORED | ||
|
||
- script: 'yarn install --frozen-lockfile' | ||
displayName: 'Install Dependencies' | ||
condition: ne(variables.CACHE_RESTORED, 'true') | ||
|
||
- script: 'yarn run lint --quiet' | ||
displayName: 'Run ESLint' | ||
|
||
- script: 'yarn run stylelint' | ||
displayName: 'Run Stylelint' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
jobs: | ||
- job: BuildPackage | ||
displayName: 'Build Packages' | ||
|
||
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' | ||
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-web-$(BuildConfiguration)' | ||
displayName: 'Run Dockerfile (unstable)' | ||
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-web-$(BuildConfiguration)' | ||
displayName: 'Run Dockerfile (stable)' | ||
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags') | ||
|
||
- task: PublishPipelineArtifact@1 | ||
displayName: 'Publish Release' | ||
condition: or(startsWith(variables['Build.SourceBranch'], 'refs/tags'), startsWith(variables['Build.SourceBranch'], 'refs/heads/master')) | ||
inputs: | ||
targetPath: '$(Build.SourcesDirectory)/deployment/dist' | ||
artifactName: 'jellyfin-web-$(BuildConfiguration)' | ||
|
||
- task: SSH@0 | ||
displayName: 'Create target directory on repository server' | ||
condition: or(startsWith(variables['Build.SourceBranch'], 'refs/tags'), startsWith(variables['Build.SourceBranch'], 'refs/heads/master')) | ||
inputs: | ||
sshEndpoint: repository | ||
runOptions: 'inline' | ||
inline: 'mkdir -p /srv/repository/incoming/azure/$(Build.BuildNumber)/$(BuildConfiguration)' | ||
|
||
- task: CopyFilesOverSSH@0 | ||
displayName: 'Upload artifacts to repository server' | ||
condition: or(startsWith(variables['Build.SourceBranch'], 'refs/tags'), startsWith(variables['Build.SourceBranch'], 'refs/heads/master')) | ||
inputs: | ||
sshEndpoint: repository | ||
sourceFolder: '$(Build.SourcesDirectory)/deployment/dist' | ||
contents: '**' | ||
targetFolder: '/srv/repository/incoming/azure/$(Build.BuildNumber)/$(BuildConfiguration)' | ||
|
||
- job: BuildDocker | ||
displayName: 'Build Docker' | ||
|
||
pool: | ||
vmImage: 'ubuntu-latest' | ||
|
||
steps: | ||
- task: Docker@2 | ||
displayName: 'Push Unstable Image' | ||
condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/master') | ||
inputs: | ||
repository: 'jellyfin/jellyfin-web' | ||
command: buildAndPush | ||
buildContext: '.' | ||
Dockerfile: 'deployment/Dockerfile.docker' | ||
containerRegistry: Docker Hub | ||
tags: | | ||
unstable-$(Build.BuildNumber) | ||
unstable | ||
- task: Docker@2 | ||
displayName: 'Push Stable Image' | ||
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags') | ||
inputs: | ||
repository: 'jellyfin/jellyfin-web' | ||
command: buildAndPush | ||
buildContext: '.' | ||
Dockerfile: 'deployment/Dockerfile.docker' | ||
containerRegistry: Docker Hub | ||
tags: | | ||
stable-$(Build.BuildNumber) | ||
stable | ||
- job: CollectArtifacts | ||
displayName: 'Collect Artifacts' | ||
dependsOn: | ||
- BuildPackage | ||
- BuildDocker | ||
condition: and(succeeded('BuildPackage'), succeeded('BuildDocker')) | ||
|
||
pool: | ||
vmImage: 'ubuntu-latest' | ||
|
||
steps: | ||
- task: SSH@0 | ||
displayName: 'Update Unstable Repository' | ||
condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/master') | ||
inputs: | ||
sshEndpoint: repository | ||
runOptions: 'inline' | ||
inline: 'sudo /srv/repository/collect-server.azure.sh /srv/repository/incoming/azure $(Build.BuildNumber) unstable' | ||
|
||
- task: SSH@0 | ||
displayName: 'Update Stable Repository' | ||
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags') | ||
inputs: | ||
sshEndpoint: repository | ||
runOptions: 'inline' | ||
inline: 'sudo /srv/repository/collect-server.azure.sh /srv/repository/incoming/azure $(Build.BuildNumber)' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../fedora/Makefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
version: 1 | ||
update_configs: | ||
- package_manager: "javascript" | ||
directory: "/" | ||
update_schedule: "weekly" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
libraries/ | ||
node_modules | ||
dist | ||
.idea | ||
.vscode | ||
src/libraries |
Oops, something went wrong.