2023-08-28 21:57:34 +00:00
|
|
|
---
|
|
|
|
when:
|
|
|
|
- event: [pull_request, tag]
|
2023-11-01 09:40:24 +00:00
|
|
|
- event: [push, manual, cron]
|
2023-08-28 21:57:34 +00:00
|
|
|
branch:
|
|
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
|
|
|
|
|
|
|
steps:
|
2023-12-22 11:51:22 +00:00
|
|
|
- name: assets
|
2023-08-28 21:57:34 +00:00
|
|
|
image: quay.io/thegeeklab/alpine-tools
|
|
|
|
commands:
|
|
|
|
- make doc
|
|
|
|
|
2023-12-22 11:51:22 +00:00
|
|
|
- name: sync
|
2023-08-28 21:57:34 +00:00
|
|
|
image: quay.io/thegeeklab/git-batch
|
|
|
|
commands:
|
|
|
|
- git-batch
|
|
|
|
|
2023-12-22 11:51:22 +00:00
|
|
|
- name: markdownlint
|
2023-08-28 21:57:34 +00:00
|
|
|
image: quay.io/thegeeklab/markdownlint-cli
|
2023-12-22 11:51:22 +00:00
|
|
|
group: test
|
2023-08-28 21:57:34 +00:00
|
|
|
commands:
|
2023-08-29 06:53:42 +00:00
|
|
|
- markdownlint 'content/**/*.md' 'README.md' 'CONTRIBUTING.md'
|
2023-08-28 21:57:34 +00:00
|
|
|
|
2023-12-22 11:51:22 +00:00
|
|
|
- name: spellcheck
|
2023-08-28 21:57:34 +00:00
|
|
|
image: quay.io/thegeeklab/alpine-tools
|
2023-12-22 11:51:22 +00:00
|
|
|
group: test
|
2023-08-28 21:57:34 +00:00
|
|
|
commands:
|
2023-12-22 11:51:22 +00:00
|
|
|
- spellchecker --files 'content/**/*.md' 'README.md' 'CONTRIBUTING.md' -d .dictionary -p spell indefinite-article syntax-urls
|
2023-08-28 21:57:34 +00:00
|
|
|
environment:
|
|
|
|
FORCE_COLOR: "true"
|
|
|
|
|
2023-12-22 11:51:22 +00:00
|
|
|
- name: link-validation
|
|
|
|
image: docker.io/lycheeverse/lychee
|
2023-08-28 21:57:34 +00:00
|
|
|
group: test
|
|
|
|
commands:
|
2023-12-22 11:51:22 +00:00
|
|
|
- lychee --no-progress --format detailed content/ README.md
|
2023-08-28 21:57:34 +00:00
|
|
|
|
2023-12-22 11:51:22 +00:00
|
|
|
- name: build
|
2024-06-10 05:27:48 +00:00
|
|
|
image: quay.io/thegeeklab/hugo:0.127.0
|
2023-08-28 21:57:34 +00:00
|
|
|
commands:
|
|
|
|
- hugo --panicOnWarning
|
|
|
|
|
2023-12-22 11:51:22 +00:00
|
|
|
- name: beautify
|
2023-08-28 21:57:34 +00:00
|
|
|
image: quay.io/thegeeklab/alpine-tools
|
|
|
|
commands:
|
|
|
|
- html-beautify -r -f 'public/**/*.html'
|
|
|
|
|
2023-12-22 11:51:22 +00:00
|
|
|
- name: publish
|
2023-08-28 21:57:34 +00:00
|
|
|
image: quay.io/thegeeklab/wp-s3-action
|
|
|
|
settings:
|
|
|
|
access_key:
|
|
|
|
from_secret: s3_access_key
|
|
|
|
bucket: geekdocs
|
|
|
|
delete: true
|
2023-09-26 21:17:30 +00:00
|
|
|
endpoint:
|
|
|
|
from_secret: s3_endpoint
|
2023-08-28 21:57:34 +00:00
|
|
|
path_style: true
|
|
|
|
secret_key:
|
|
|
|
from_secret: s3_secret_access_key
|
|
|
|
source: public/
|
|
|
|
strip_prefix: public/
|
|
|
|
target: /${CI_REPO_NAME}
|
|
|
|
when:
|
|
|
|
- event: [tag]
|
2023-11-01 09:40:24 +00:00
|
|
|
- event: [push, manual, cron]
|
2023-08-28 21:57:34 +00:00
|
|
|
branch:
|
|
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
2023-12-22 11:51:22 +00:00
|
|
|
status: [success, failure]
|