26e57c8655
ci/woodpecker/pr/build Pipeline was successful
The pinned jellyfin-ha-src fork sets global.json sdk 9.0.0 (rollForward latestMinor), so the publish steps in build.yaml and docker.yaml must run on the .NET 9 SDK. They referenced sdk:10.0, which fails the pinned build. Repoint both publish steps to mcr.microsoft.com/dotnet/sdk:9.0.
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
when:
|
|
- event: pull_request
|
|
|
|
steps:
|
|
# Clone the pinned upstream jellyfin-ha source and publish the .NET server
|
|
# into ./publish-output (consumed by Dockerfile.runtime).
|
|
- name: publish
|
|
image: mcr.microsoft.com/dotnet/sdk:9.0
|
|
commands:
|
|
- |
|
|
REF=$$(cat UPSTREAM_REF)
|
|
git clone https://git.unkin.net/unkin/jellyfin-ha-src.git src
|
|
git -C src checkout "$$REF"
|
|
dotnet publish src/Jellyfin.Server/Jellyfin.Server.csproj \
|
|
-c Release -r linux-x64 --self-contained false -o ./publish-output
|
|
backend_options:
|
|
kubernetes:
|
|
serviceAccountName: default
|
|
resources:
|
|
requests:
|
|
memory: 2Gi
|
|
cpu: 2
|
|
limits:
|
|
memory: 6Gi
|
|
cpu: 4
|
|
|
|
# Validate the runtime image builds (no push on PRs).
|
|
- name: docker-build
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
settings:
|
|
repo: artifactapi.k8s.syd1.au.unkin.net/docker-internal/jellyfin-ha
|
|
dockerfile: Dockerfile.runtime
|
|
dry_run: true
|
|
depends_on: [publish]
|
|
backend_options:
|
|
kubernetes:
|
|
serviceAccountName: default
|
|
resources:
|
|
requests:
|
|
memory: 1Gi
|
|
cpu: 1
|
|
limits:
|
|
memory: 4Gi
|
|
cpu: 2
|