From 675d24906798710538760210cd2ec696ce03bf85 Mon Sep 17 00:00:00 2001 From: paspo Date: Thu, 11 Dec 2025 16:10:09 +0100 Subject: [PATCH] fix github url --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 68620e3..c1715b9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,9 +7,9 @@ ARG HUGO_ARCH=amd64 RUN \ apk --no-cache upgrade && \ apk --no-cache add curl jq && \ - LATEST_RELEASE=$(curl -L -s -H 'Accept: application/json' https://github.com/gohugoio/hugo/releases/latest | jq --raw-output ".tag_name" | sed 's/^v//' ) && \ + LATEST_RELEASE=$(curl -L -s https://api.github.com/repos/gohugoio/hugo/releases/latest | jq -r '.tag_name' | sed 's/^v//' ) && \ echo "Using hugo release: ${LATEST_RELEASE}" && \ - URL="https://github.com/gohugoio/hugo/releases/download/v${LATEST_RELEASE}/hugo_extended_${LATEST_RELEASE}_linux-${HUGO_ARCH}.tar.gz " && \ + URL=$(curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | jq -r '.assets[] | select(.name | test("linux-${HUGO_ARCH}.tar.gz") and test("extended") and (test("withdeploy") | not)) | .browser_download_url') && \ echo "Downloading: ${URL}" && \ wget "${URL}" -O - | tar xzv -C /tmp