actions-hugo/Dockerfile
Shohei Ueda 105e2e8ee3
Hugo Modules (#3)
* change: base image debian:9-slim to golang:1.12.7-buster

* update: tag on readme
2019-07-27 19:29:29 +09:00

19 lines
631 B
Docker

FROM golang:1.12.7-buster
LABEL "com.github.actions.name"="Hugo action"
LABEL "com.github.actions.description"="GitHub Actions for Hugo extended and Hugo Modules"
LABEL "com.github.actions.icon"="package"
LABEL "com.github.actions.color"="yellow"
LABEL "repository"="https://github.com/peaceiris/actions-hugo"
LABEL "homepage"="https://github.com/peaceiris/actions-hugo"
LABEL "maintainer"="peaceiris"
ENV HUGO_VERSION='0.56.0'
ENV HUGO_URL='https://github.com/gohugoio/hugo.git'
RUN git clone ${HUGO_URL} -b v${HUGO_VERSION} --depth 1 /hugo && \
cd /hugo && \
go install --tags extended
ENTRYPOINT [ "/go/bin/hugo" ]