Skip to content

Instantly share code, notes, and snippets.

@arubacao
Created May 12, 2019 20:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save arubacao/1974c64d242577d37f948b9180f9fd72 to your computer and use it in GitHub Desktop.
Save arubacao/1974c64d242577d37f948b9180f9fd72 to your computer and use it in GitHub Desktop.
Install and verfiy Hugo in Docker
#**************** HUGO *********************************************
ENV HUGO_VERSION="0.55.5"
RUN set -ex \
&& curl -fsSLO --compressed "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz" \
&& curl -fsSLO --compressed "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_checksums.txt" \
&& grep " hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz\$" hugo_extended_${HUGO_VERSION}_checksums.txt | sha256sum -c - \
&& tar -xzf hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz -C /usr/local/bin/ \
&& rm hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz \
&& rm hugo_extended_${HUGO_VERSION}_checksums.txt \
&& hugo version
#**************** END HUGO *********************************************
@astanet
Copy link

astanet commented Oct 30, 2020

This is what I really needed. It seems that there is no checksums file only for extended version. So, I migrated this gist to 0.75.1. Thank you for your great knowledge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment