2023-12-15 09:32:08 +00:00
|
|
|
---
|
|
|
|
when:
|
|
|
|
- event: [pull_request, tag]
|
|
|
|
- event: [push, manual, cron]
|
|
|
|
branch:
|
|
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
|
|
|
|
|
|
|
steps:
|
2023-12-22 09:11:33 +00:00
|
|
|
- name: assets
|
2023-12-15 09:32:08 +00:00
|
|
|
image: quay.io/thegeeklab/alpine-tools
|
|
|
|
commands:
|
|
|
|
- make doc
|
|
|
|
|
2023-12-22 09:11:33 +00:00
|
|
|
- name: markdownlint
|
2023-12-15 09:32:08 +00:00
|
|
|
image: quay.io/thegeeklab/markdownlint-cli
|
|
|
|
group: test
|
|
|
|
commands:
|
|
|
|
- markdownlint 'content/**/*.md' 'README.md'
|
|
|
|
|
2023-12-22 09:11:33 +00:00
|
|
|
- name: spellcheck
|
2023-12-15 09:32:08 +00:00
|
|
|
image: quay.io/thegeeklab/alpine-tools
|
|
|
|
group: test
|
|
|
|
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
|
2023-12-15 09:32:08 +00:00
|
|
|
environment:
|
|
|
|
FORCE_COLOR: "true"
|
|
|
|
|
2023-12-22 09:11:33 +00:00
|
|
|
- name: link-validation
|
2023-12-15 09:32:08 +00:00
|
|
|
image: docker.io/lycheeverse/lychee
|
|
|
|
group: test
|
|
|
|
commands:
|
|
|
|
- lychee --no-progress --format detailed content/ README.md
|
|
|
|
|
2023-12-22 09:11:33 +00:00
|
|
|
- name: favicons
|
2023-12-15 09:32:08 +00:00
|
|
|
image: docker.io/node:lts-alpine
|
|
|
|
commands:
|
|
|
|
- npm install --quiet --no-progress
|
|
|
|
- npm run build
|
|
|
|
environment:
|
2023-12-15 09:33:36 +00:00
|
|
|
FORCE_COLOR: "true"
|
2023-12-15 09:32:08 +00:00
|
|
|
|
2023-12-22 09:11:33 +00:00
|
|
|
- name: build
|
2024-06-12 18:50:34 +00:00
|
|
|
image: quay.io/thegeeklab/hugo:0.127.0
|
2023-12-15 09:32:08 +00:00
|
|
|
commands:
|
|
|
|
- hugo --panicOnWarning
|
|
|
|
|
2023-12-22 09:11:33 +00:00
|
|
|
- name: beautify
|
2023-12-15 09:32:08 +00:00
|
|
|
image: quay.io/thegeeklab/alpine-tools
|
|
|
|
commands:
|
|
|
|
- html-beautify -r -f 'public/**/*.html'
|
|
|
|
|
2023-12-22 09:11:33 +00:00
|
|
|
- name: publish
|
2023-12-15 09:32:08 +00:00
|
|
|
image: quay.io/thegeeklab/wp-s3-action
|
|
|
|
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}
|
2023-12-22 09:11:33 +00:00
|
|
|
status: [success, failure]
|