Skip to content

Commit 96d1d7c

Browse files
authored
Upgrade Hugo (#4816)
Signed-off-by: Alvin Lin <[email protected]>
1 parent 70f1ea2 commit 96d1d7c

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

build-image/Dockerfile

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,34 +10,34 @@ RUN apt-get install -y nodejs && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
1010
# and viceversa.
1111
1212

13-
ENV HUGO_VERSION=v0.72.0
14-
RUN git clone https://github.com/gohugoio/hugo.git --branch ${HUGO_VERSION} --depth 1 && \
13+
ENV HUGO_VERSION=v0.94.3
14+
RUN git clone https://github.com/alvinlin123/hugo.git --branch ${HUGO_VERSION} --depth 1 && \
1515
cd hugo && go install --tags extended && cd ../ && \
1616
rm -rf hugo/ && rm -rf /go/pkg /go/src /root/.cache
1717

1818
ENV SHFMT_VERSION=3.2.4
1919
RUN GOARCH=$(go env GOARCH) && \
2020
if [ "$GOARCH" = "amd64" ]; then \
21-
DIGEST=3f5a47f8fec27fae3e06d611559a2063f5d27e4b9501171dde9959b8c60a3538; \
22-
elif [ "$GOARCH" = "arm64" ]; then \
23-
DIGEST=6474d9cc08a1c9fe2ef4be7a004951998e3067d46cf55a011ddd5ff7bfab3de6; \
24-
fi && \
25-
URL=https://github.com/mvdan/sh/releases/download/v${SHFMT_VERSION}/shfmt_v${SHFMT_VERSION}_linux_${GOARCH}; \
26-
curl -fsSLo shfmt "${URL}" && \
21+
DIGEST=3f5a47f8fec27fae3e06d611559a2063f5d27e4b9501171dde9959b8c60a3538; \
22+
elif [ "$GOARCH" = "arm64" ]; then \
23+
DIGEST=6474d9cc08a1c9fe2ef4be7a004951998e3067d46cf55a011ddd5ff7bfab3de6; \
24+
fi && \
25+
URL=https://github.com/mvdan/sh/releases/download/v${SHFMT_VERSION}/shfmt_v${SHFMT_VERSION}_linux_${GOARCH}; \
26+
curl -fsSLo shfmt "${URL}" && \
2727
echo "$DIGEST shfmt" | sha256sum -c && \
2828
chmod +x shfmt && \
2929
mv shfmt /usr/bin
3030

3131
RUN curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b /usr/bin v1.27.0
3232

3333
RUN GO111MODULE=on go get \
34-
github.com/client9/misspell/cmd/[email protected] \
35-
github.com/golang/protobuf/[email protected] \
36-
github.com/gogo/protobuf/[email protected] \
37-
github.com/gogo/protobuf/[email protected] \
38-
github.com/weaveworks/tools/cover@bdd647e92546027e12cdde3ae0714bb495e43013 \
39-
github.com/fatih/[email protected] \
40-
github.com/campoy/[email protected] \
34+
github.com/client9/misspell/cmd/[email protected] \
35+
github.com/golang/protobuf/[email protected] \
36+
github.com/gogo/protobuf/[email protected] \
37+
github.com/gogo/protobuf/[email protected] \
38+
github.com/weaveworks/tools/cover@bdd647e92546027e12cdde3ae0714bb495e43013 \
39+
github.com/fatih/[email protected] \
40+
github.com/campoy/[email protected] \
4141
&& rm -rf /go/pkg /go/src /root/.cache
4242

4343
ENV NODE_PATH=/usr/lib/node_modules
@@ -47,5 +47,5 @@ ENTRYPOINT ["/build.sh"]
4747

4848
ARG revision
4949
LABEL org.opencontainers.image.title="build-image" \
50-
org.opencontainers.image.source="https://github.com/cortexproject/cortex/tree/master/build-image" \
51-
org.opencontainers.image.revision="${revision}"
50+
org.opencontainers.image.source="https://github.com/cortexproject/cortex/tree/master/build-image" \
51+
org.opencontainers.image.revision="${revision}"

0 commit comments

Comments
 (0)