2019-07-27 12:29:29 +02:00
|
|
|
FROM golang:1.12.7-buster
|
2019-05-21 22:57:34 +02:00
|
|
|
|
2019-07-27 12:29:29 +02:00
|
|
|
LABEL "com.github.actions.name"="Hugo action"
|
|
|
|
LABEL "com.github.actions.description"="GitHub Actions for Hugo extended and Hugo Modules"
|
2019-05-21 22:57:34 +02: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-08-15 13:26:15 +02:00
|
|
|
ENV HUGO_VERSION='0.57.0'
|
2019-07-30 12:43:01 +02:00
|
|
|
ENV HUGO_NAME="hugo_extended_${HUGO_VERSION}_Linux-64bit"
|
|
|
|
ENV HUGO_URL="https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/${HUGO_NAME}.tar.gz"
|
|
|
|
RUN wget "${HUGO_URL}" && \
|
|
|
|
tar -zxvf "${HUGO_NAME}.tar.gz" && \
|
|
|
|
mv ./hugo /go/bin/
|
2019-05-21 22:57:34 +02:00
|
|
|
|
2019-07-27 12:29:29 +02:00
|
|
|
ENTRYPOINT [ "/go/bin/hugo" ]
|