You've already forked markdownlint-docker
Compare commits
4 Commits
v0.30.0
...
bd50e4f7b2
| Author | SHA1 | Date | |
|---|---|---|---|
|
bd50e4f7b2
|
|||
|
6037be6651
|
|||
|
42588b3de7
|
|||
| 4c8744948a |
@@ -10,7 +10,7 @@ steps:
|
|||||||
- name: markdown lint
|
- name: markdown lint
|
||||||
commands:
|
commands:
|
||||||
- markdownlint *.md
|
- markdownlint *.md
|
||||||
image: docker.io/volkerraschek/markdownlint:0.29.0
|
image: docker.io/volkerraschek/markdownlint:0.30.0
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 50
|
cpu: 50
|
||||||
|
|||||||
23
Dockerfile
23
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=master
|
||||||
ARG MARKDOWNLINT_VERSION
|
|
||||||
|
|
||||||
RUN set -ex && \
|
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 git clone --branch ${MARKDOWNLINT_VERSION} https://github.com/igorshubovych/markdownlint-cli /markdownlint && \
|
||||||
RUN if [ -z "${MARKDOWNLINT_VERSION}" ]; then set -ex; npm install -g markdownlint-cli; fi
|
cd /markdownlint && \
|
||||||
|
npm install --production && \
|
||||||
|
npm install --global
|
||||||
|
|
||||||
RUN set -ex && \
|
ENTRYPOINT [ "/usr/local/bin/markdownlint" ]
|
||||||
npm cache clean --force && \
|
|
||||||
apk del nodejs-npm
|
|
||||||
|
|
||||||
WORKDIR /work
|
|
||||||
ENTRYPOINT ["/usr/bin/markdownlint"]
|
|
||||||
CMD ["."]
|
|
||||||
|
|||||||
2
Makefile
2
Makefile
@@ -1,6 +1,6 @@
|
|||||||
# MARKDOWNLINT_VERSION
|
# MARKDOWNLINT_VERSION
|
||||||
# Only required to install a specifiy version
|
# Only required to install a specifiy version
|
||||||
MARKDOWNLINT_VERSION?=
|
MARKDOWNLINT_VERSION?=v0.30.0 # renovate: datasource=github-releases depName=markdownlint-ci lookupName=igorshubovych/markdownlint-cli versioning=semver
|
||||||
|
|
||||||
# CONTAINER_RUNTIME
|
# CONTAINER_RUNTIME
|
||||||
# The CONTAINER_RUNTIME variable will be used to specified the path to a
|
# The CONTAINER_RUNTIME variable will be used to specified the path to a
|
||||||
|
|||||||
@@ -1,8 +1,34 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
"automerge": true,
|
"assignees": [ "volker.raschek" ],
|
||||||
"automergeStrategy": "merge-commit",
|
"automergeStrategy": "merge-commit",
|
||||||
"automergeType": "pr",
|
"automergeType": "pr",
|
||||||
|
"labels": [ "renovate" ],
|
||||||
|
"packageRules": [
|
||||||
|
{
|
||||||
|
"addLabels": [ "renovate/droneci", "renovate/automerge" ],
|
||||||
|
"automerge": true,
|
||||||
|
"matchManagers": "droneci",
|
||||||
|
"matchUpdateTypes": [ "minor", "patch"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"addLabels": [ "renovate/markdownlint-cli", "renovate/automerge" ],
|
||||||
|
"automerge": false,
|
||||||
|
"matchPackageNames": [ "markdownlint-cli" ],
|
||||||
|
"matchManagers": [ "regex" ]
|
||||||
|
}
|
||||||
|
],
|
||||||
"rebaseLabel": "renovate/rebase",
|
"rebaseLabel": "renovate/rebase",
|
||||||
"rebaseWhen": "behind-base-branch"
|
"rebaseWhen": "behind-base-branch",
|
||||||
|
"regexManagers": [
|
||||||
|
{
|
||||||
|
"description": "Update version",
|
||||||
|
"fileMatch": [
|
||||||
|
"^Makefile$"
|
||||||
|
],
|
||||||
|
"matchStrings": [
|
||||||
|
"MARKDOWNLINT_VERSION\\?=(?<currentValue>.*) # renovate: datasource=(?<datasource>.*) depName=(?<depName>.*) (lookupName=(?<lookupName>.*))? (versioning=(?<versioning>.*))?"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user