From 75b958bc6ea1cd4b9e8e16c7c2d2b98047d96334 Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Wed, 21 Feb 2024 12:03:09 +0100 Subject: [PATCH] Add a spellchecker --- .woodpecker/build.yaml | 35 +++++++++++++++++++++++++++++++++++ .woodpecker/spellcheck.yaml | 13 +++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 .woodpecker/build.yaml create mode 100644 .woodpecker/spellcheck.yaml diff --git a/.woodpecker/build.yaml b/.woodpecker/build.yaml new file mode 100644 index 0000000..d9848ae --- /dev/null +++ b/.woodpecker/build.yaml @@ -0,0 +1,35 @@ +--- +when: + event: push + branch: main +steps: + build: + name: Build the CV + image: node + environment: + OUTPUT: /tmp/out + commands: + - apt-get update + - |- + apt-get install -y libx11-xcb1 libxcomposite1 libasound2 \ + libatk1.0-0 libatk-bridge2.0-0 libcairo2 libcups2 libdbus-1-3 \ + libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 libgtk-3-0 \ + libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 \ + libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 \ + libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 \ + libnss3-dev + - npm install -g md-to-pdf + - |- + md-to-pdf index.md --launch-options '{ "args": ["--no-sandbox"] }' + - mkdir $CI_WORKSPACE/cv + - mv index.pdf $CI_WORKSPACE/cv/n.rodionov.pdf + upload: + name: Upload the CV + image: rclone/rclone:latest + secrets: + - rclone_config_content + environment: + RCLONE_CONFIG: /tmp/rclone.conf + commands: + - echo "$RCLONE_CONFIG_CONTENT" > $RCLONE_CONFIG + - rclone copy -P $CI_WORKSPACE/cv badhouseplants-minio:/public-download diff --git a/.woodpecker/spellcheck.yaml b/.woodpecker/spellcheck.yaml new file mode 100644 index 0000000..2487224 --- /dev/null +++ b/.woodpecker/spellcheck.yaml @@ -0,0 +1,13 @@ +--- +when: + event: push + branch: + exclude: + - main +steps: + spellcheck: + name: Run the spellchecker + image: node + commands: + - npm i markdown-spellcheck -g + - mdspell "*.md" -n -r