---
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: sync
image: quay.io/thegeeklab/git-batch
- git-batch
- name: markdownlint
image: quay.io/thegeeklab/markdownlint-cli
group: test
- markdownlint 'content/**/*.md' 'README.md' -p .gitignore
- name: spellcheck
- pwd
- ls -l /woodpecker/src/gitea.rknet.org/ansible/galaxy
- ls -l /woodpecker/src/gitea.rknet.org/ansible/galaxy/content/collections/general
- spellchecker --files 'content/**/*.md' 'README.md' -d .dictionary -p spell indefinite-article syntax-urls frontmatter --frontmatter-keys title
environment:
FORCE_COLOR: "true"
- name: link-validation
image: docker.io/lycheeverse/lychee
- lychee --no-progress --format detailed content/ README.md
- name: build
image: quay.io/thegeeklab/hugo:0.122.0
- hugo --panicOnWarning
- name: beautify
- html-beautify -r -f 'public/**/*.html'
- name: publish
image: quay.io/thegeeklab/wp-s3-action
settings:
access_key:
from_secret: s3_access_key
bucket: geekdocs
delete: true
endpoint:
from_secret: s3_endpoint
path_style: true
secret_key:
from_secret: s3_secret_access_key
source: public/
strip_prefix: public/
target: /${CI_REPO_NAME}
- event: [tag]
status: [success, failure]