build(docker): move Markdownlint
Move Markdownlint into the main Dockerfile and a service to the Docker Compose override file.
This commit is contained in:
parent
9f510e4e23
commit
b0990f7edb
4 changed files with 21 additions and 16 deletions
13
run
13
run
|
@ -46,17 +46,8 @@ function help {
|
|||
printf "\nExtended help:\n Each task has comments for general usage\n"
|
||||
}
|
||||
|
||||
function markdownlint:build {
|
||||
docker image build . \
|
||||
-f markdownlint.Dockerfile \
|
||||
-t markdownlint
|
||||
}
|
||||
|
||||
function markdownlint:run {
|
||||
docker container run --rm \
|
||||
-v $(pwd)/.markdownlint.yaml:/root/.markdownlint.yaml \
|
||||
-v $(pwd)/source:/data \
|
||||
markdownlint
|
||||
function lint:markdown {
|
||||
docker-compose run --rm markdownlint "${@}"
|
||||
}
|
||||
|
||||
function run-production {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue