Skip to content

Commit c50c606

Browse files
committed
Use UPSTREAM_URL and UPSTREAM_SED ARGs for version checking
1 parent 83e2971 commit c50c606

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Containerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ ARG BASE_VERSION=15
22
FROM ghcr.io/daemonless/base:${BASE_VERSION}
33

44
ARG FREEBSD_ARCH=amd64
5+
ARG UPSTREAM_URL="https://plex.tv/api/downloads/5.json"
6+
ARG UPSTREAM_SED="s/.*\"FreeBSD\":{[^}]*\"version\":\"\\([^\"]*\\)\".*/\\1/p"
57

68
LABEL org.opencontainers.image.title="Plex Media Server" \
79
org.opencontainers.image.description="Plex Media Server on FreeBSD" \
@@ -14,8 +16,8 @@ LABEL org.opencontainers.image.title="Plex Media Server" \
1416
io.daemonless.port="32400" \
1517
io.daemonless.arch="${FREEBSD_ARCH}" \
1618
io.daemonless.category="Media Servers" \
17-
io.daemonless.upstream-mode="plex" \
18-
io.daemonless.upstream-url="https://plex.tv/api/downloads/5.json"
19+
io.daemonless.upstream-url="${UPSTREAM_URL}" \
20+
io.daemonless.upstream-sed="${UPSTREAM_SED}"
1921

2022
# VERSION options:
2123
# container - use baked version, no updates (default)

0 commit comments

Comments
 (0)