mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2026-01-25 20:32:19 +01:00
Compare commits
2 Commits
v0.56.0-mo
...
v0.56.2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f7fd45cb9e | ||
|
|
09ca2911f5 |
12
Dockerfile
12
Dockerfile
@@ -9,11 +9,11 @@ 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
|
||||
ENV HUGO_VERSION='0.56.2'
|
||||
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/
|
||||
|
||||
ENTRYPOINT [ "/go/bin/hugo" ]
|
||||
|
||||
Reference in New Issue
Block a user