Skip to content

Commit bedb2b4

Browse files
committed
deps: use igorshubovych/markdownlint-cli image for running markdownlint
Signed-off-by: David Karlsson <[email protected]>
1 parent 1cb27f2 commit bedb2b4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,12 @@ RUN --mount=type=cache,target=/tmp/hugo_cache \
5353
hugo --gc --minify -e $HUGO_ENV -b $DOCS_URL
5454

5555
# lint lints markdown files
56-
FROM davidanson/markdownlint-cli2:v0.14.0 AS lint
57-
USER root
56+
FROM ghcr.io/igorshubovych/markdownlint-cli:v0.45.0 AS lint
5857
RUN --mount=type=bind,target=. \
59-
/usr/local/bin/markdownlint-cli2 \
58+
markdownlint \
6059
"content/**/*.md" \
61-
"#content/manuals/engine/release-notes/*.md" \
62-
"#content/manuals/desktop/previous-versions/*.md"
60+
--ignore "content/manuals/engine/release-notes/*.md" \
61+
--ignore "content/manuals/desktop/previous-versions/*.md"
6362

6463
# test validates HTML output and checks for broken links
6564
FROM wjdp/htmltest:v${HTMLTEST_VERSION} AS test

0 commit comments

Comments
 (0)