Files
unkin-agent c7409d0812
ci/woodpecker/pr/build Pipeline was successful
fix: align runtime image .NET to the app (9.0)
The runtime image based on aspnet:10.0 provides only .NET 10.x, but the
publish step builds framework-dependent against SDK 9.0, so the app requires
Microsoft.NETCore.App 9.0.0 and crashes on start under 10.x.

Pin the runtime base to aspnet:9.0 to match the SDK 9.0 publish.
2026-08-15 18:40:05 +10:00

42 lines
1.9 KiB
Markdown

# jellyfin-ha (container build)
Build-orchestration repo for [ZoltyMat/jellyfin-ha](https://github.com/ZoltyMat/jellyfin-ha) — a Jellyfin fork
that adds distributed, Redis-backed transcoding for multi-pod Kubernetes (lease-aware cleanup, HA session
takeover, optional PostgreSQL).
This repo does **not** vendor the fork's source. It pins an upstream commit, builds the .NET 9 server, and
produces a runtime container image pushed to the Gitea registry.
## What it produces
`artifactapi.k8s.syd1.au.unkin.net/docker-internal/jellyfin-ha:<tag>` — an `mcr.microsoft.com/dotnet/aspnet:9.0` based image with ffmpeg and
the prebuilt `jellyfin-web` client, running the published `jellyfin-ha` server.
## Layout
| File | Purpose |
|------|---------|
| `UPSTREAM_REF` | Pinned upstream commit SHA. Bumping the fork = edit this + cut a release. |
| `Dockerfile.runtime` | Runtime-only image; `COPY`s the CI-produced `publish-output/` and the web client. |
| `Makefile` | Local `make publish` / `make build`; `make patch\|minor\|major` to tag + push a release. |
| `.woodpecker/build.yaml` | PR pipeline: `dotnet publish` + docker `dry_run`. |
| `.woodpecker/docker.yaml` | Tag (`v*`) pipeline: `dotnet publish` + build & push to the Gitea registry. |
## Releasing
1. To track a newer upstream, update `UPSTREAM_REF` to the desired commit SHA and merge via PR.
2. Cut a release: `make patch` (or `minor` / `major`) tags `vX.Y.Z` and pushes it, which triggers
`.woodpecker/docker.yaml` to build and push `artifactapi.k8s.syd1.au.unkin.net/docker-internal/jellyfin-ha:vX.Y.Z` + `:latest`.
## Local build
```bash
make build # clones pinned upstream, dotnet publish, docker build
```
Requires the .NET 9 SDK and Docker. `make publish` runs just the clone + publish into `./publish-output`.
## Deployment
Deployed to Kubernetes via ArgoCD — see `argocd-apps` (`apps/base/jellyfin`, `media` ApplicationSet/project).