Skip to content

Commit 67d710b

Browse files
committed
migrate to jq for version extraction
1 parent 377c407 commit 67d710b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Containerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ FROM ghcr.io/daemonless/arr-base:${BASE_VERSION}
44
ARG FREEBSD_ARCH=amd64
55
ARG PACKAGES="sonarr"
66
ARG SONARR_BRANCH="main"
7-
ARG UPSTREAM_URL="https://services.sonarr.tv/v1/download/main/latest?version=4&os=freebsd"
8-
ARG UPSTREAM_SED="grep -o '\"version\":\"[^\"]*\"' | head -1 | cut -d'\"' -f4"
7+
ARG UPSTREAM_URL="https://services.sonarr.tv/v1/releases"
8+
ARG UPSTREAM_JQ=".\"v4-stable\".version"
99

1010
LABEL org.opencontainers.image.title="Sonarr" \
1111
org.opencontainers.image.description="Sonarr TV show management on FreeBSD" \
@@ -21,7 +21,7 @@ LABEL org.opencontainers.image.title="Sonarr" \
2121
org.freebsd.jail.allow.mlock="required" \
2222
io.daemonless.category="Media Management" \
2323
io.daemonless.upstream-url="${UPSTREAM_URL}" \
24-
io.daemonless.upstream-sed="${UPSTREAM_SED}" \
24+
io.daemonless.upstream-jq="${UPSTREAM_JQ}" \
2525
io.daemonless.packages="${PACKAGES}"
2626

2727
# Install Sonarr from FreeBSD packages

0 commit comments

Comments
 (0)