From e396239ee124989a02cc19209ac0af26e6daac32 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 3 Jan 2021 21:58:12 +0100 Subject: [PATCH] use pre-build docker image for markdownlint --- .drone.jsonnet | 9 ++------- .drone.yml | 10 +++------- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index b3fd82f..c65a34e 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -279,15 +279,10 @@ local PipelineDocs = { }, { name: 'markdownlint', - image: 'node:lts-alpine', + image: 'thegeeklab/markdownlint-cli', commands: [ - 'npm install -g markdownlint-cli', - "markdownlint 'docs/content/**/*.md' 'README.md'", + "markdownlint 'docs/content/**/*.md' 'README.md' 'CONTRIBUTING.md'", ], - environment: { - FORCE_COLOR: true, - NPM_CONFIG_LOGLEVEL: 'error', - }, }, { name: 'spellcheck', diff --git a/.drone.yml b/.drone.yml index a901fd6..4bd1483 100644 --- a/.drone.yml +++ b/.drone.yml @@ -483,13 +483,9 @@ steps: - make doc - name: markdownlint - image: node:lts-alpine + image: thegeeklab/markdownlint-cli commands: - - npm install -g markdownlint-cli - - markdownlint 'docs/content/**/*.md' 'README.md' - environment: - FORCE_COLOR: true - NPM_CONFIG_LOGLEVEL: error + - markdownlint 'docs/content/**/*.md' 'README.md' 'CONTRIBUTING.md' - name: spellcheck image: node:lts-alpine @@ -657,6 +653,6 @@ depends_on: --- kind: signature -hmac: 4723d34a177bcdfd2400e148c361a173d18b8392231dc8c46d4cc27f6a8e40bb +hmac: 294dd727afe86d2b1764dc93ca382c33738ab08ed1e560de1ea5560b576187e2 ...