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:
authorMarcel Amirault <mamirault@gitlab.com>2020-08-28 11:55:46 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2020-08-28 11:55:46 +0300
commit6e38f561199eb01a9381ad2d460ff2aa4c96f4e9 (patch)
tree9cc2c8cdd7b7184de05e2d10c3bff3c18a7f3697 /dockerfiles
parent31faf4025d5c7071d8859c42504cc4bc77874bdd (diff)
Start using versioning for lint image
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 \