Skip to content

Commit 2ec3340

Browse files
authored
Merge pull request #19275 from dvdksn/upgrade-dependencies
upgrade build and dev dependencies
2 parents f2cf8b8 + 0fec9e9 commit 2ec3340

File tree

7 files changed

+321
-1839
lines changed

7 files changed

+321
-1839
lines changed

Dockerfile

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,22 @@ ARG HTMLTEST_VERSION=0.17.0
55

66
FROM golang:${GO_VERSION}-alpine as base
77
WORKDIR /src
8-
RUN apk --update add nodejs npm git
8+
RUN apk --update add nodejs npm git gcompat
99

1010
FROM base as node
1111
COPY package*.json .
12-
RUN npm install && npm cache clean --force
12+
ENV NODE_ENV=production
13+
RUN npm install
1314

1415
FROM base as hugo
15-
ARG HUGO_VERSION=0.116.1
16+
ARG HUGO_VERSION=0.122.0
1617
ARG TARGETARCH
17-
WORKDIR /bin
18-
RUN go install github.com/gohugoio/hugo@v${HUGO_VERSION}
18+
WORKDIR /tmp/hugo
19+
RUN wget -O "hugo.tar.gz" "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-${TARGETARCH}.tar.gz"
20+
RUN tar -xf "hugo.tar.gz" hugo
1921

2022
FROM base as build-base
21-
COPY --from=hugo $GOPATH/bin/hugo /bin/hugo
23+
COPY --from=hugo /tmp/hugo/hugo /bin/hugo
2224
COPY --from=node /src/node_modules /src/node_modules
2325
COPY . .
2426

@@ -32,7 +34,7 @@ RUN hugo --gc --minify -d /out -e $HUGO_ENV -b $DOCS_URL
3234
FROM scratch as release
3335
COPY --from=build /out /
3436

35-
FROM davidanson/markdownlint-cli2:v0.10.0 as lint
37+
FROM davidanson/markdownlint-cli2:v0.12.1 as lint
3638
USER root
3739
RUN --mount=type=bind,target=. \
3840
/usr/local/bin/markdownlint-cli2 \

assets/js/mermaid.js

Lines changed: 0 additions & 61 deletions
This file was deleted.

layouts/_default/_markup/render-codeblock-mermaid.html

Lines changed: 0 additions & 4 deletions
This file was deleted.

layouts/partials/head.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,4 @@
5656
}}
5757
<script defer src="{{ $js.Permalink }}"></script>
5858
<link rel="preconnect" href="https://{{ site.Params.algolia.appid }}-dsn.algolia.net" crossorigin />
59-
{{ if .Page.Store.Get "hasMermaid" }}
60-
{{ $mermaid := resources.Get "js/mermaid.js" | js.Build (dict "minify" true) }}
61-
<script>{{ $mermaid.Content | safeJS }}</script>
62-
{{ end }}
6359
{{ partialCached "utils/resources.html" . }}

netlify.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
publish = "public"
33

44
[context.deploy-preview.environment]
5-
HUGO_VERSION = "0.116.1"
5+
NODE_VERSION = "20"
6+
NODE_ENV = "production"
7+
HUGO_VERSION = "0.122.0"
68
HUGO_ENABLEGITINFO = "true"
79
HUGO_ENVIRONMENT = "preview"
810

0 commit comments

Comments
 (0)