Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b1470f3158 | |||
| ec04b35b39 | |||
| a369c49457 | |||
| 8738315c52 | |||
| ac507021f3 | |||
| 26e57c8655 | |||
| 9f8d9014d3 |
@@ -5,11 +5,11 @@ 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:10.0
|
||||
image: mcr.microsoft.com/dotnet/sdk:9.0
|
||||
commands:
|
||||
- |
|
||||
REF=$$(cat UPSTREAM_REF)
|
||||
git clone https://github.com/ZoltyMat/jellyfin-ha.git src
|
||||
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
|
||||
|
||||
+30
-3
@@ -5,11 +5,11 @@ when:
|
||||
steps:
|
||||
# Same publish step as the PR pipeline: clone pinned upstream + dotnet publish.
|
||||
- name: publish
|
||||
image: mcr.microsoft.com/dotnet/sdk:10.0
|
||||
image: mcr.microsoft.com/dotnet/sdk:9.0
|
||||
commands:
|
||||
- |
|
||||
REF=$$(cat UPSTREAM_REF)
|
||||
git clone https://github.com/ZoltyMat/jellyfin-ha.git src
|
||||
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
|
||||
@@ -24,17 +24,44 @@ steps:
|
||||
memory: 6Gi
|
||||
cpu: 4
|
||||
|
||||
# Stage the internal (Vault) CA into the shared workspace so the buildkit push
|
||||
# below can verify artifactapi's TLS cert. almalinux9-base already trusts the
|
||||
# unkin CA (it is the image the RPM release pipelines use to reach artifactapi
|
||||
# over HTTPS), so its consolidated trust bundle contains the chain we need.
|
||||
- name: ca-trust
|
||||
image: git.unkin.net/unkin/almalinux9-base:20260606
|
||||
commands:
|
||||
- cp /etc/pki/tls/certs/ca-bundle.crt "$${CI_WORKSPACE}/artifactapi-ca.crt"
|
||||
depends_on: [publish]
|
||||
backend_options:
|
||||
kubernetes:
|
||||
serviceAccountName: default
|
||||
resources:
|
||||
requests:
|
||||
memory: 256Mi
|
||||
cpu: 250m
|
||||
limits:
|
||||
memory: 512Mi
|
||||
cpu: 1
|
||||
|
||||
# Build the runtime image and push it to the artifactapi local docker registry.
|
||||
# buildkit_config points buildkit at the staged CA so the TLS handshake with
|
||||
# artifactapi (Vault-signed cert) verifies; buildx copies the referenced CA
|
||||
# into the buildkitd container under /etc/buildkit/certs when it creates the
|
||||
# builder. CI_WORKSPACE is runtime-only so the path is the fixed workspace path.
|
||||
- name: docker
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
settings:
|
||||
registry: artifactapi.k8s.syd1.au.unkin.net
|
||||
repo: artifactapi.k8s.syd1.au.unkin.net/docker-internal/jellyfin-ha
|
||||
dockerfile: Dockerfile.runtime
|
||||
buildkit_config: |
|
||||
[registry."artifactapi.k8s.syd1.au.unkin.net"]
|
||||
ca = ["/woodpecker/src/git.unkin.net/unkin/jellyfin-ha/artifactapi-ca.crt"]
|
||||
tags:
|
||||
- ${CI_COMMIT_TAG}
|
||||
- latest
|
||||
depends_on: [publish]
|
||||
depends_on: [ca-trust]
|
||||
backend_options:
|
||||
kubernetes:
|
||||
serviceAccountName: default
|
||||
|
||||
@@ -8,7 +8,7 @@ REF := $(shell cat UPSTREAM_REF)
|
||||
# ./publish-output (consumed by Dockerfile.runtime). Mirrors CI.
|
||||
publish:
|
||||
rm -rf src publish-output
|
||||
git clone https://github.com/ZoltyMat/jellyfin-ha.git src
|
||||
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
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
d4f9c12c22d3a640f3b0a3622b23b8cd01d044ad
|
||||
2e1e445e470c2f2c1520f66678a73faa226c2058
|
||||
|
||||
Reference in New Issue
Block a user