thegeeklab/.woodpecker/docs.yml

76 lines
1.9 KiB
YAML
Raw Permalink Normal View History

---
when:
- event: [pull_request, tag]
- event: [push, manual, cron]
branch:
- ${CI_REPO_DEFAULT_BRANCH}
steps:
- name: assets
image: quay.io/thegeeklab/alpine-tools
commands:
- make doc
- name: markdownlint
image: quay.io/thegeeklab/markdownlint-cli
2024-10-30 20:33:30 +00:00
depends_on: [assets]
commands:
- markdownlint 'content/**/*.md' 'README.md'
- name: spellcheck
image: quay.io/thegeeklab/alpine-tools
2024-10-30 20:33:30 +00:00
depends_on: [assets]
commands:
2023-12-15 09:38:38 +00:00
- spellchecker --files 'content/**/*.md' 'README.md' -d .dictionary -p spell indefinite-article syntax-urls frontmatter --frontmatter-keys title tags
environment:
FORCE_COLOR: "true"
- name: link-validation
image: docker.io/lycheeverse/lychee
2024-10-30 20:33:30 +00:00
depends_on: [assets]
commands:
- lychee --no-progress --format detailed content/ README.md
- name: favicons
image: docker.io/node:lts-alpine
2024-10-30 20:33:30 +00:00
depends_on: [markdownlint, spellcheck, link-validation]
commands:
- npm install --quiet --no-progress
- npm run build
environment:
2023-12-15 09:33:36 +00:00
FORCE_COLOR: "true"
- name: build
image: quay.io/thegeeklab/hugo:0.136.5
2024-10-30 20:33:30 +00:00
depends_on: [favicons]
commands:
- hugo --panicOnWarning
- name: beautify
image: quay.io/thegeeklab/alpine-tools
2024-10-30 20:33:30 +00:00
depends_on: [build]
commands:
- html-beautify -r -f 'public/**/*.html'
- name: publish
image: quay.io/thegeeklab/wp-s3-action
2024-10-30 20:33:30 +00:00
depends_on: [beautify]
settings:
access_key:
from_secret: s3_access_key
bucket: thegeeklab-root
delete: true
endpoint:
from_secret: s3_endpoint
path_style: true
secret_key:
from_secret: s3_secret_access_key
source: public/
strip_prefix: public/
when:
- event: [tag]
- event: [push, manual, cron]
branch:
- ${CI_REPO_DEFAULT_BRANCH}
status: [success, failure]