Add a spellchecker tool to CI and fix all existing typos.

This commit is contained in:
Nikolai Rodionov
2023-05-02 14:47:34 +02:00
parent 77447a18da
commit 67ff2bbdfd
14 changed files with 241 additions and 28 deletions

View File

@ -46,15 +46,15 @@ steps:
- name: Test a build
image: git.badhouseplants.net/badhouseplants/hugo-builder
depends_on:
depends_on:
- clone
commands:
- hugo
- name: Build and push the docker image
image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:80ffd53372652576fa3c36a56b351b448a025c6a
privileged: true
depends_on:
depends_on:
- Test a build
environment:
GITEA_TOKEN:
@ -64,7 +64,7 @@ steps:
- name: Sync pictures from lfs to Minio
image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:80ffd53372652576fa3c36a56b351b448a025c6a
depends_on:
depends_on:
- Test a build
environment:
RCLONE_CONFIG_CONTENT:
@ -119,7 +119,7 @@ steps:
from_secret: GITHUB_OAUTH_KEY
ARGO_GOOGLE_OAUTH_KEY:
from_secret: GOOGLE_OAUTH_KEY
commands:
commands:
- mkdir $HOME/.kube
- echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config
- export ARGO_APP_CHART_VERSION=`cat chart/Chart.yaml | yq '.version'`
@ -168,3 +168,28 @@ steps:
commands:
- echo "$RCLONE_CONFIG_CONTENT" > $RCLONE_CONFIG
- ./scripts/cleanup.pl
---
kind: pipeline
type: kubernetes
name: Spell-Checker
trigger:
event:
- push
clone:
disable: true
steps:
- name: clone
image: alpine/git
environment:
GIT_LFS_SKIP_SMUDGE: 1
commands:
- git clone $DRONE_REMOTE_URL --recurse-submodules .
- git checkout $DRONE_BRANCH
- name: Spell-Checker
image: node
commands:
- npm i markdown-spellcheck -g
- mdspell "**/*.md" -n -r