Fixed full pipeline, runs correctly now with drone exec
This commit is contained in:
parent
29d6783471
commit
8055b70ab1
|
@ -8,3 +8,4 @@ README.md
|
||||||
deployment/*/dist
|
deployment/*/dist
|
||||||
deployment/*/pkg-dist
|
deployment/*/pkg-dist
|
||||||
deployment/collect-dist/
|
deployment/collect-dist/
|
||||||
|
ci/
|
||||||
|
|
71
.drone.yml
71
.drone.yml
|
@ -10,103 +10,70 @@ steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: microsoft/dotnet:2-sdk
|
image: microsoft/dotnet:2-sdk
|
||||||
commands:
|
commands:
|
||||||
- dotnet publish --configuration release --output /release Jellyfin.Server
|
- dotnet publish "Jellyfin.Server" --configuration Release --output "../ci/ci-release"
|
||||||
|
|
||||||
- name: clone-dotnet-compat
|
- name: clone-dotnet-compat
|
||||||
image: docker:git
|
image: docker:git
|
||||||
commands:
|
commands:
|
||||||
- git clone --depth 1 https://github.com/EraYaN/dotnet-compatibility
|
- git clone --depth 1 https://github.com/EraYaN/dotnet-compatibility ci/dotnet-compatibility
|
||||||
when:
|
|
||||||
event:
|
|
||||||
- pull_request
|
|
||||||
|
|
||||||
- name: build-dotnet-compat
|
- name: build-dotnet-compat
|
||||||
image: microsoft/dotnet:2-sdk
|
image: microsoft/dotnet:2-sdk
|
||||||
commands:
|
commands:
|
||||||
- dotnet publish --runtime debian.9-x64 --configuration release --output /tools dotnet-compatibility/CompatibilityCheckerCoreCLI
|
- dotnet publish "ci/dotnet-compatibility/CompatibilityCheckerCoreCLI" --configuration Release --output "../../ci-tools"
|
||||||
when:
|
|
||||||
event:
|
|
||||||
- pull_request
|
|
||||||
|
|
||||||
- name: download-last-nuget-release-common
|
- name: download-last-nuget-release-common
|
||||||
image: plugins/download
|
image: plugins/download
|
||||||
settings:
|
settings:
|
||||||
source: https://www.nuget.org/api/v2/package/Jellyfin.Common
|
source: https://www.nuget.org/api/v2/package/Jellyfin.Common
|
||||||
destination: Jellyfin.Common.nupkg
|
destination: ci/Jellyfin.Common.nupkg
|
||||||
when:
|
|
||||||
event:
|
|
||||||
- pull_request
|
|
||||||
|
|
||||||
- name: download-last-nuget-release-model
|
- name: download-last-nuget-release-model
|
||||||
image: plugins/download
|
image: plugins/download
|
||||||
settings:
|
settings:
|
||||||
source: https://www.nuget.org/api/v2/package/Jellyfin.Model
|
source: https://www.nuget.org/api/v2/package/Jellyfin.Model
|
||||||
destination: Jellyfin.Model.nupkg
|
destination: ci/Jellyfin.Model.nupkg
|
||||||
when:
|
|
||||||
event:
|
|
||||||
- pull_request
|
|
||||||
|
|
||||||
- name: download-last-nuget-release-controller
|
- name: download-last-nuget-release-controller
|
||||||
image: plugins/download
|
image: plugins/download
|
||||||
settings:
|
settings:
|
||||||
source: https://www.nuget.org/api/v2/package/Jellyfin.Controller
|
source: https://www.nuget.org/api/v2/package/Jellyfin.Controller
|
||||||
destination: Jellyfin.Controller.nupkg
|
destination: ci/Jellyfin.Controller.nupkg
|
||||||
when:
|
|
||||||
event:
|
|
||||||
- pull_request
|
|
||||||
|
|
||||||
- name: download-last-nuget-release-naming
|
- name: download-last-nuget-release-naming
|
||||||
image: plugins/download
|
image: plugins/download
|
||||||
settings:
|
settings:
|
||||||
source: https://www.nuget.org/api/v2/package/Jellyfin.Naming
|
source: https://www.nuget.org/api/v2/package/Jellyfin.Naming
|
||||||
destination: Jellyfin.Naming.nupkg
|
destination: ci/Jellyfin.Naming.nupkg
|
||||||
when:
|
|
||||||
event:
|
|
||||||
- pull_request
|
|
||||||
|
|
||||||
- name: extract-downloaded-nuget-packages
|
- name: extract-downloaded-nuget-packages
|
||||||
image: garthk/unzip
|
image: garthk/unzip
|
||||||
commands:
|
commands:
|
||||||
- unzip -j Jellyfin.Common.nupkg "*.dll" -d /current-release
|
- unzip -j ci/Jellyfin.Common.nupkg "*.dll" -d ci/nuget-packages
|
||||||
- unzip -j Jellyfin.Model.nupkg "*.dll" -d /current-release
|
- unzip -j ci/Jellyfin.Model.nupkg "*.dll" -d ci/nuget-packages
|
||||||
- unzip -j Jellyfin.Controller.nupkg "*.dll" -d /current-release
|
- unzip -j ci/Jellyfin.Controller.nupkg "*.dll" -d ci/nuget-packages
|
||||||
- unzip -j Jellyfin.Naming.nupkg "*.dll" -d /current-release
|
- unzip -j ci/Jellyfin.Naming.nupkg "*.dll" -d ci/nuget-packages
|
||||||
when:
|
|
||||||
event:
|
|
||||||
- pull_request
|
|
||||||
|
|
||||||
- name: run-dotnet-compat-common
|
- name: run-dotnet-compat-common
|
||||||
image: debian:stretch
|
image: microsoft/dotnet:2-runtime
|
||||||
err_ignore: true
|
err_ignore: true
|
||||||
commands:
|
commands:
|
||||||
- /tools/CompatibilityCheckerCoreCLI /current-release/Jellyfin.Common.dll /release/Jellyfin.Common.dll
|
- dotnet ci/ci-tools/CompatibilityCheckerCoreCLI.dll ci/nuget-packages/Jellyfin.Common.dll ci/ci-release/Jellyfin.Common.dll
|
||||||
when:
|
|
||||||
event:
|
|
||||||
- pull_request
|
|
||||||
|
|
||||||
- name: run-dotnet-compat-model
|
- name: run-dotnet-compat-model
|
||||||
image: debian:stretch
|
image: microsoft/dotnet:2-runtime
|
||||||
err_ignore: true
|
err_ignore: true
|
||||||
commands:
|
commands:
|
||||||
- /tools/CompatibilityCheckerCoreCLI /current-release/Jellyfin.Model.dll /release/Jellyfin.Model.dll
|
- dotnet ci/ci-tools/CompatibilityCheckerCoreCLI.dll ci/nuget-packages/Jellyfin.Model.dll ci/ci-release/Jellyfin.Model.dll
|
||||||
when:
|
|
||||||
event:
|
|
||||||
- pull_request
|
|
||||||
|
|
||||||
- name: run-dotnet-compat-controller
|
- name: run-dotnet-compat-controller
|
||||||
image: debian:stretch
|
image: microsoft/dotnet:2-runtime
|
||||||
err_ignore: true
|
err_ignore: true
|
||||||
commands:
|
commands:
|
||||||
- /tools/CompatibilityCheckerCoreCLI /current-release/Jellyfin.Controller.dll /release/Jellyfin.Controller.dll
|
- dotnet ci/ci-tools/CompatibilityCheckerCoreCLI.dll ci/nuget-packages/Jellyfin.Controller.dll ci/ci-release/Jellyfin.Controller.dll
|
||||||
when:
|
|
||||||
event:
|
|
||||||
- pull_request
|
|
||||||
|
|
||||||
- name: run-dotnet-compat-naming
|
- name: run-dotnet-compat-naming
|
||||||
image: debian:stretch
|
image: microsoft/dotnet:2-runtime
|
||||||
err_ignore: true
|
err_ignore: true
|
||||||
commands:
|
commands:
|
||||||
- /tools/CompatibilityCheckerCoreCLI /current-release/Jellyfin.Naming.dll /release/Jellyfin.Naming.dll
|
- dotnet ci/ci-tools/CompatibilityCheckerCoreCLI.dll ci/nuget-packages/Jellyfin.Naming.dll ci/ci-release/Jellyfin.Naming.dll
|
||||||
when:
|
|
||||||
event:
|
|
||||||
- pull_request
|
|
||||||
|
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -264,3 +264,5 @@ deployment/**/pkg-dist-tmp/
|
||||||
deployment/collect-dist/
|
deployment/collect-dist/
|
||||||
|
|
||||||
jellyfin_version.ini
|
jellyfin_version.ini
|
||||||
|
|
||||||
|
ci/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user