2019-07-27 10:29:29 +00:00
|
|
|
FROM golang:1.12.7-buster
|
2019-05-21 20:57:34 +00:00
|
|
|
|
2019-07-27 10:29:29 +00:00
|
|
|
LABEL "com.github.actions.name"="Hugo action"
|
|
|
|
LABEL "com.github.actions.description"="GitHub Actions for Hugo extended and Hugo Modules"
|
2019-05-21 20:57:34 +00:00
|
|
|
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"
|
|
|
|
|
2019-07-28 23:27:02 +00:00
|
|
|
ENV HUGO_VERSION='0.56.1'
|
2019-07-27 10:29:29 +00:00
|
|
|
ENV HUGO_URL='https://github.com/gohugoio/hugo.git'
|
2019-05-21 20:57:34 +00:00
|
|
|
|
2019-07-27 10:29:29 +00:00
|
|
|
RUN git clone ${HUGO_URL} -b v${HUGO_VERSION} --depth 1 /hugo && \
|
|
|
|
cd /hugo && \
|
|
|
|
go install --tags extended
|
2019-05-21 20:57:34 +00:00
|
|
|
|
2019-07-27 10:29:29 +00:00
|
|
|
ENTRYPOINT [ "/go/bin/hugo" ]
|