2023-12-13 10:23:28 +00:00
|
|
|
---
|
|
|
|
when:
|
|
|
|
- event: [pull_request, tag]
|
|
|
|
- event: [push, manual]
|
|
|
|
branch:
|
|
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
|
|
|
|
|
|
|
steps:
|
2024-01-16 13:30:08 +00:00
|
|
|
- name: markdownlint
|
2023-12-13 10:23:28 +00:00
|
|
|
image: quay.io/thegeeklab/markdownlint-cli
|
|
|
|
group: test
|
|
|
|
commands:
|
2023-12-15 12:05:48 +00:00
|
|
|
- markdownlint 'docs/**/*.md' 'README.md'
|
2023-12-13 10:23:28 +00:00
|
|
|
|
2024-01-16 13:30:08 +00:00
|
|
|
- name: spellcheck
|
2023-12-13 10:23:28 +00:00
|
|
|
image: quay.io/thegeeklab/alpine-tools
|
|
|
|
group: test
|
|
|
|
commands:
|
2023-12-15 12:05:48 +00:00
|
|
|
- spellchecker --files 'docs/**/*.md' 'README.md' -d .dictionary -p spell indefinite-article syntax-urls frontmatter --frontmatter-keys title tags
|
2023-12-13 10:23:28 +00:00
|
|
|
environment:
|
|
|
|
FORCE_COLOR: "true"
|
|
|
|
|
2024-01-16 13:30:08 +00:00
|
|
|
- name: link-validation
|
2023-12-13 10:23:28 +00:00
|
|
|
image: docker.io/lycheeverse/lychee
|
|
|
|
group: test
|
|
|
|
commands:
|
|
|
|
- lychee --no-progress --format detailed docs/ README.md
|
|
|
|
|
2024-01-16 13:30:08 +00:00
|
|
|
- name: publish
|
2023-12-13 10:23:28 +00:00
|
|
|
image: quay.io/thegeeklab/wp-git-action
|
|
|
|
settings:
|
|
|
|
action:
|
|
|
|
- pages
|
|
|
|
author_email: shipper@rknet.org
|
|
|
|
author_name: shipper
|
|
|
|
branch: docs
|
|
|
|
message: auto-update documentation
|
|
|
|
netrc_machine: gitea.rknet.org
|
|
|
|
netrc_password:
|
|
|
|
from_secret: gitea_token
|
|
|
|
pages_directory: docs/
|
|
|
|
remote_url: https://gitea.rknet.org/ansible/${CI_REPO_NAME}
|
|
|
|
when:
|
|
|
|
- event: [push, manual]
|
|
|
|
branch:
|
|
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- build-package
|