mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2025-05-05 23:15:27 +08:00
release: v0.56.2 (#5)
* change: install from binary * update: tag on readme * add: move hugo binary under GOPATH * upgrade: hugo to v0.56.2
This commit is contained in:
parent
09ca2911f5
commit
f7fd45cb9e
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 "homepage"="https://github.com/peaceiris/actions-hugo"
|
||||||
LABEL "maintainer"="peaceiris"
|
LABEL "maintainer"="peaceiris"
|
||||||
|
|
||||||
ENV HUGO_VERSION='0.56.1'
|
ENV HUGO_VERSION='0.56.2'
|
||||||
ENV HUGO_URL='https://github.com/gohugoio/hugo.git'
|
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 git clone ${HUGO_URL} -b v${HUGO_VERSION} --depth 1 /hugo && \
|
RUN wget "${HUGO_URL}" && \
|
||||||
cd /hugo && \
|
tar -zxvf "${HUGO_NAME}.tar.gz" && \
|
||||||
go install --tags extended
|
mv ./hugo /go/bin/
|
||||||
|
|
||||||
ENTRYPOINT [ "/go/bin/hugo" ]
|
ENTRYPOINT [ "/go/bin/hugo" ]
|
||||||
|
@ -36,7 +36,7 @@ action "is-branch-master" {
|
|||||||
|
|
||||||
action "build" {
|
action "build" {
|
||||||
needs = "is-branch-master"
|
needs = "is-branch-master"
|
||||||
uses = "peaceiris/actions-hugo@v0.56.1"
|
uses = "peaceiris/actions-hugo@v0.56.2"
|
||||||
args = ["--gc", "--minify", "--cleanDestinationDir"]
|
args = ["--gc", "--minify", "--cleanDestinationDir"]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user