fix: build markdownlint-ci from source code
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
42588b3de7
commit
6037be6651
21
Dockerfile
21
Dockerfile
@ -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" ]
|
||||
|
2
Makefile
2
Makefile
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user