From daf21cc5f7ac90ab7f3052e5b4be62eaba11e9bc Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 3 Jan 2021 21:58:11 +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 ee154ba..67ae984 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -225,15 +225,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' -p .gitignore", + "markdownlint 'docs/content/**/*.md' 'README.md' 'CONTRIBUTING.md' -p .gitignore", ], - environment: { - FORCE_COLOR: true, - NPM_CONFIG_LOGLEVEL: 'error', - }, }, { name: 'spellcheck', diff --git a/.drone.yml b/.drone.yml index a59dcf7..1d3787e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -242,13 +242,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' -p .gitignore - environment: - FORCE_COLOR: true - NPM_CONFIG_LOGLEVEL: error + - markdownlint 'docs/content/**/*.md' 'README.md' 'CONTRIBUTING.md' -p .gitignore - name: spellcheck image: node:lts-alpine @@ -358,6 +354,6 @@ depends_on: --- kind: signature -hmac: 03108e79da796974a91f9af64a24f4129005357b41a1e280be964ee884f3a085 +hmac: 2a8711f166f19c03f78909ab06c72ad8fd8e4c4a5689208a494f84268ee26ebc ...