commit a5acf228f7ff7b4d9cb4b5559424934acb5d52b2 Author: Jake Jarvis Date: Mon Aug 26 09:44:37 2019 -0400 initial commit diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b5a7f2f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +FROM alpine:latest + +ENV HUGO_VERSION 0.56.3 + +LABEL "com.github.actions.name"="Hugo Build" +LABEL "com.github.actions.description"="Hugo as an action. Includes all legacy versions." +LABEL "com.github.actions.icon"="check-square" +LABEL "com.github.actions.color"="yellow" + +LABEL version=${HUGO_VERSION} +LABEL repository="https://github.com/jakejarvis/hugo-build-action" +LABEL homepage="https://jarv.is/" +LABEL maintainer="Jake Jarvis " + +RUN wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz && \ + wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_checksums.txt && \ + grep hugo_${HUGO_VERSION}_Linux-64bit.tar.gz hugo_${HUGO_VERSION}_checksums.txt | sha256sum -c && \ + tar xf hugo_${HUGO_VERSION}_Linux-64bit.tar.gz && \ + mv ./hugo /usr/bin && \ + chmod +x /usr/bin/hugo && \ + rm -rf hugo_${HUGO_VERSION}_Linux-64bit + +ENTRYPOINT ["hugo"] +#CMD ["--help"]