Fix Hugo checksum verification

This commit is contained in:
Neil Borromeo 2026-04-19 13:15:39 +08:00
commit bf6360b222

View file

@ -19,7 +19,7 @@ RUN case "$(dpkg --print-architecture)" in \
esac \ esac \
&& curl -fsSLo /tmp/hugo-checksums.txt "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_checksums.txt" \ && curl -fsSLo /tmp/hugo-checksums.txt "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_checksums.txt" \
&& curl -fsSLo /tmp/hugo.tar.gz "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/${asset}" \ && curl -fsSLo /tmp/hugo.tar.gz "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/${asset}" \
&& grep " ${asset}$" /tmp/hugo-checksums.txt > /tmp/hugo.tar.gz.sha256 \ && grep " ${asset}$" /tmp/hugo-checksums.txt | sed 's# .*# /tmp/hugo.tar.gz#' > /tmp/hugo.tar.gz.sha256 \
&& sha256sum -c /tmp/hugo.tar.gz.sha256 \ && sha256sum -c /tmp/hugo.tar.gz.sha256 \
&& tar -xzf /tmp/hugo.tar.gz -C /tmp hugo \ && tar -xzf /tmp/hugo.tar.gz -C /tmp hugo \
&& install -m 0755 /tmp/hugo /usr/local/bin/hugo \ && install -m 0755 /tmp/hugo /usr/local/bin/hugo \