Skip to content

Commit f3dcfce

Browse files
committed
update artifact retrieval
1 parent 52b09e4 commit f3dcfce

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@ RUN \
2424
YAAK_RELEASE=$(curl -sX GET "https://api.github.com/repos/mountain-loop/yaak/releases/latest" \
2525
| jq -r .tag_name); \
2626
fi && \
27-
YAAK_VERSION=$(echo "${YAAK_RELEASE}" | sed 's|^v||') && \
28-
curl -o \
27+
YAAK_URL=$(curl -sX GET "https://api.github.com/repos/mountain-loop/yaak/releases/tags/${YAAK_RELEASE}" | jq -r '.assets[].browser_download_url' \
28+
| grep "amd64" | grep ".deb$") && \
29+
curl -fo \
2930
/tmp/yaak.deb -L \
30-
"https://github.com/mountain-loop/yaak/releases/download/v${YAAK_VERSION}/yaak_${YAAK_VERSION}_amd64.deb" && \
31+
"${YAAK_URL}" && \
3132
apt-get install -y --no-install-recommends \
3233
/tmp/yaak.deb && \
3334
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \

0 commit comments

Comments
 (0)