fix: build markdownlint-ci from source code
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Markus Pesch 2022-02-09 20:04:48 +01:00
parent 42588b3de7
commit 6037be6651
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982
2 changed files with 10 additions and 13 deletions

View File

@ -1,18 +1,15 @@
FROM docker.io/library/alpine:3.12
FROM docker.io/library/node:lts-alpine3.15 AS build
ARG NODEJS_VERSION=12.22.6-r0
ARG MARKDOWNLINT_VERSION
RUN set -ex && \
apk add --no-cache nodejs=${NODEJS_VERSION} nodejs-npm=${NODEJS_VERSION}
apk update && \
apk upgrade && \
apk add --no-cache git
RUN if [ ! -z "${MARKDOWNLINT_VERSION}" ]; then set -ex; npm install -g markdownlint-cli@${MARKDOWNLINT_VERSION}; fi
RUN if [ -z "${MARKDOWNLINT_VERSION}" ]; then set -ex; npm install -g markdownlint-cli; fi
RUN git clone --branch ${MARKDOWNLINT_VERSION} https://github.com/igorshubovych/markdownlint-cli /markdownlint && \
cd /markdownlint && \
npm install --production && \
npm install --global
RUN set -ex && \
npm cache clean --force && \
apk del nodejs-npm
WORKDIR /work
ENTRYPOINT ["/usr/bin/markdownlint"]
CMD ["."]
ENTRYPOINT [ "/usr/local/bin/markdownlint" ]

View File

@ -1,6 +1,6 @@
# MARKDOWNLINT_VERSION
# Only required to install a specifiy version
MARKDOWNLINT_VERSION?=v0.30.0 # renovate: datasource=npm depName=markdownlint-cli
MARKDOWNLINT_VERSION?=v0.30.0 # renovate: datasource=github-releases depName=markdownlint-ci lookupName=igorshubovych/markdownlint-cli versioning=semver
# CONTAINER_RUNTIME
# The CONTAINER_RUNTIME variable will be used to specified the path to a