Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dockerfiles')
-rw-r--r--dockerfiles/Dockerfile.gitlab-docs-lint6
1 files changed, 4 insertions, 2 deletions
diff --git a/dockerfiles/Dockerfile.gitlab-docs-lint b/dockerfiles/Dockerfile.gitlab-docs-lint
index 9f7dcfef..5ff65568 100644
--- a/dockerfiles/Dockerfile.gitlab-docs-lint
+++ b/dockerfiles/Dockerfile.gitlab-docs-lint
@@ -13,7 +13,9 @@ MAINTAINER GitLab Documentation Team
# Install vale
# We need to build it from source, see https://github.com/errata-ai/vale/issues/128
-ENV VALE_VERSION=2.3.3
+# VALE_VERSION and MARKDOWNLINT_VERSION are defined in .gitlab-ci.yml
+ARG VALE_VERSION
+ARG MARKDOWNLINT_VERSION
ENV GOBIN=/usr/local/bin
RUN apk add --no-cache wget zip tar make && \
@@ -38,7 +40,7 @@ ENV CI_COMMIT_REF_NAME ${CI_COMMIT_REF_NAME:-master}
WORKDIR /tmp
# markdownlint-cli pinned to control when new versions are put in place.
-RUN yarn global add markdownlint-cli@0.23.2 && yarn cache clean
+RUN yarn global add markdownlint-cli@${MARKDOWNLINT_VERSION} && yarn cache clean
RUN wget https://gitlab.com/gitlab-org/gitlab-docs/-/archive/$CI_COMMIT_REF_NAME/gitlab-docs-$CI_COMMIT_REF_NAME.tar.bz2 \
&& tar xvjf gitlab-docs-$CI_COMMIT_REF_NAME.tar.bz2 \