-
Notifications
You must be signed in to change notification settings - Fork 312
/
Copy pathjellyfin.yaml
110 lines (97 loc) · 2.75 KB
/
jellyfin.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
package:
name: jellyfin
version: "10.10.6"
epoch: 0
description: The Free Software Media System
copyright:
- license: GPL-2.0-only
dependencies:
runtime:
- aspnet-8-runtime
- dotnet-8
- ffmpeg
- fontconfig
- mesa
- sqlite
environment:
contents:
packages:
- aspnet-8-runtime
- busybox
- dotnet-8-sdk
- ffmpeg
pipeline:
- uses: git-checkout
with:
repository: https://github.com/jellyfin/jellyfin
tag: v${{package.version}}
expected-commit: a5b771861f532f3519904636a16952e7e9ec8df2
- uses: patch
with:
patches: GHSA-qrmm-w75w-3wpx.patch
- runs: |
# Set runtime arch
if [[ "${{build.arch}}" == "aarch64" ]]; then
runtime_arch="arm64"
elif [[ "${{build.arch}}" == "x86_64" ]]; then
runtime_arch="x64"
fi
dotnet publish \
--configuration Release Jellyfin.Server \
--no-self-contained \
--output publish \
--runtime linux-$runtime_arch \
-p:DebugSymbols=false \
-p:DebugType=none
mkdir -p "${{targets.destdir}}"/usr/lib
cp -dr publish "${{targets.destdir}}"/usr/lib/jellyfin
mkdir -p "${{targets.destdir}}"/usr/bin
ln -s /usr/lib/jellyfin/jellyfin "${{targets.destdir}}"/usr/bin/jellyfin
- uses: strip
update:
enabled: true
ignore-regex-patterns:
- '.*alpha.*'
- '.*beta.*'
- '.*rc.*'
github:
identifier: jellyfin/jellyfin
use-tag: true
strip-prefix: v
test:
pipeline:
- name: "Start Jellyfin server"
runs: |
jellyfin --nowebclient > /tmp/jellyfin.log 2>&1 &
JELLYFIN_PID=$!
# Wait a few seconds to let Jellyfin attempt to start
sleep 10
# Check if Jellyfin process is still running
if ! ps | grep -q "$JELLYFIN_PID"; then
echo "Test failed: Jellyfin failed to start."
echo "----- Jellyfin Debug Logs -----"
cat /tmp/jellyfin.log
exit 1
else
echo "Test passed: Jellyfin started successfully."
fi
- name: "Verify Jellyfin HTTP service on port 8096"
runs: |
echo "Checking if Jellyfin is listening on port 8096..."
for i in {1..5}; do
if netstat -tuln | grep -q ":8096"; then
echo "Port 8096 is open for Jellyfin."
exit 0
else
echo "Port 8096 not yet open. Retrying in 5 seconds..."
sleep 5
fi
done
# Final check after retries
if ! netstat -tuln | grep -q ":8096"; then
echo "Test failed: Jellyfin is not listening on port 8096."
echo "----- Jellyfin Debug Logs -----"
cat /tmp/jellyfin.log
kill $JELLYFIN_PID || true
exit 1
fi