Added git support for using Hugo git variables

https://gohugo.io/variables/git/
This commit is contained in:
Rémy Jacquin 2017-09-17 20:44:42 +02:00
parent 3274c9db71
commit b1db27cd59
No known key found for this signature in database
GPG Key ID: BEEF3B9EC3E7FBE9

View File

@ -7,7 +7,8 @@ ENV HUGO_SHA 0e6cb63e6aca10277b96023c4fed97ac3a3e922d12f073b8a80630946fe289e7
RUN set -eux && \
apk add --update --no-cache \
ca-certificates \
openssl && \
openssl \
git && \
wget -O ${HUGO_VERSION}.tar.gz https://github.com/spf13/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz && \
echo "${HUGO_SHA} ${HUGO_VERSION}.tar.gz" | sha256sum -c && \
tar xf ${HUGO_VERSION}.tar.gz && mv hugo* /usr/bin/hugo && \