From 0096b3f8b7639b8c8623f46ab2a39d418f48e4f4 Mon Sep 17 00:00:00 2001 From: TheSpad Date: Sun, 23 Apr 2023 18:47:49 +0100 Subject: [PATCH] Fix version check to use correct repo, update dockerfiles --- Dockerfile | 6 ++---- Dockerfile.aarch64 | 6 ++---- Dockerfile.armhf | 6 ++---- jenkins-vars.yml | 2 +- 4 files changed, 7 insertions(+), 13 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9ba0748..02f0453 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,14 +19,12 @@ RUN \ echo 'deb [arch=amd64] https://repo.jellyfin.org/ubuntu jammy main' > /etc/apt/sources.list.d/jellyfin.list && \ echo 'deb [arch=amd64] https://repo.jellyfin.org/ubuntu jammy unstable' >> /etc/apt/sources.list.d/jellyfin.list && \ if [ -z ${JELLYFIN_RELEASE+x} ]; then \ - JELLYFIN="jellyfin-server"; \ - else \ - JELLYFIN="jellyfin-server=${JELLYFIN_RELEASE}"; \ + JELLYFIN_RELEASE=$(curl -sX GET https://repo.jellyfin.org/ubuntu/dists/jammy/unstable/binary-amd64/Packages |grep -A 7 -m 1 'Package: jellyfin-server' | awk -F ': ' '/Version/{print $2;exit}'); \ fi && \ apt-get update && \ apt-get install -y --no-install-recommends \ at \ - ${JELLYFIN} \ + jellyfin-server=${JELLYFIN_RELEASE} \ jellyfin-ffmpeg5 \ jellyfin-web \ libfontconfig1 \ diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index 1f32457..8e37418 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -19,14 +19,12 @@ RUN \ echo 'deb [arch=arm64] https://repo.jellyfin.org/ubuntu jammy main' > /etc/apt/sources.list.d/jellyfin.list && \ echo 'deb [arch=arm64] https://repo.jellyfin.org/ubuntu jammy unstable' >> /etc/apt/sources.list.d/jellyfin.list && \ if [ -z ${JELLYFIN_RELEASE+x} ]; then \ - JELLYFIN="jellyfin-server"; \ - else \ - JELLYFIN="jellyfin-server=${JELLYFIN_RELEASE}"; \ + JELLYFIN_RELEASE=$(curl -sX GET https://repo.jellyfin.org/ubuntu/dists/jammy/unstable/binary-amd64/Packages |grep -A 7 -m 1 'Package: jellyfin-server' | awk -F ': ' '/Version/{print $2;exit}'); \ fi && \ apt-get update && \ apt-get install -y --no-install-recommends \ at \ - ${JELLYFIN} \ + jellyfin-server=${JELLYFIN_RELEASE} \ jellyfin-ffmpeg5 \ jellyfin-web \ libfontconfig1 \ diff --git a/Dockerfile.armhf b/Dockerfile.armhf index 2ca3a7c..b96a088 100644 --- a/Dockerfile.armhf +++ b/Dockerfile.armhf @@ -19,14 +19,12 @@ RUN \ echo 'deb [arch=armhf] https://repo.jellyfin.org/ubuntu jammy main' > /etc/apt/sources.list.d/jellyfin.list && \ echo 'deb [arch=armhf] https://repo.jellyfin.org/ubuntu jammy unstable' >> /etc/apt/sources.list.d/jellyfin.list && \ if [ -z ${JELLYFIN_RELEASE+x} ]; then \ - JELLYFIN="jellyfin-server"; \ - else \ - JELLYFIN="jellyfin-server=${JELLYFIN_RELEASE}"; \ + JELLYFIN_RELEASE=$(curl -sX GET https://repo.jellyfin.org/ubuntu/dists/jammy/unstable/binary-amd64/Packages |grep -A 7 -m 1 'Package: jellyfin-server' | awk -F ': ' '/Version/{print $2;exit}'); \ fi && \ apt-get update && \ apt-get install -y --no-install-recommends \ at \ - ${JELLYFIN} \ + jellyfin-server=${JELLYFIN_RELEASE} \ jellyfin-ffmpeg5 \ jellyfin-web \ libfontconfig1 \ diff --git a/jenkins-vars.yml b/jenkins-vars.yml index 38bb41d..80012d2 100644 --- a/jenkins-vars.yml +++ b/jenkins-vars.yml @@ -3,7 +3,7 @@ # jenkins variables project_name: docker-jellyfin external_type: na -custom_version_command: "curl -sX GET https://repo.jellyfin.org/ubuntu/dists/focal/unstable/binary-amd64/Packages |grep -A 7 -m 1 'Package: jellyfin-server' | awk -F ': ' '/Version/{print $2;exit}'" +custom_version_command: "curl -sX GET https://repo.jellyfin.org/ubuntu/dists/jammy/unstable/binary-amd64/Packages |grep -A 7 -m 1 'Package: jellyfin-server' | awk -F ': ' '/Version/{print $2;exit}'" release_type: prerelease release_tag: nightly ls_branch: nightly