2023-08-25 21:35:44 +00:00
|
|
|
---
|
|
|
|
when:
|
|
|
|
- event: [pull_request, tag]
|
|
|
|
- event: [push, manual]
|
|
|
|
branch:
|
|
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
|
|
|
|
|
|
|
steps:
|
2023-12-22 11:00:02 +00:00
|
|
|
- name: markdownlint
|
2023-08-25 21:35:44 +00:00
|
|
|
image: quay.io/thegeeklab/markdownlint-cli
|
|
|
|
commands:
|
|
|
|
- markdownlint 'exampleSite/content/**/*.md' 'README.md' 'CONTRIBUTING.md'
|
|
|
|
|
2023-12-22 11:00:02 +00:00
|
|
|
- name: spellcheck
|
2023-08-25 21:35:44 +00:00
|
|
|
image: quay.io/thegeeklab/alpine-tools
|
|
|
|
commands:
|
|
|
|
- spellchecker --files 'exampleSite/content/**/*.md' 'README.md' -d .dictionary -p spell indefinite-article syntax-urls frontmatter --frontmatter-keys title
|
|
|
|
environment:
|
|
|
|
FORCE_COLOR: "true"
|
|
|
|
|
2023-12-22 11:00:02 +00:00
|
|
|
- name: assets
|
2023-08-25 21:35:44 +00:00
|
|
|
image: docker.io/library/node:lts
|
|
|
|
commands:
|
2023-12-22 11:00:02 +00:00
|
|
|
- npm install --quiet --no-progress
|
2023-08-25 21:35:44 +00:00
|
|
|
- npm run svg-sprite-list
|
|
|
|
- mkdir -p exampleSite/themes/${CI_REPO_NAME}
|
|
|
|
- curl -sSL https://github.com/${CI_REPO}/releases/latest/download/${CI_REPO_NAME}.tar.gz | tar -xz -C exampleSite/themes/${CI_REPO_NAME}/ --strip-components=1
|
|
|
|
when:
|
|
|
|
- event: [tag]
|
|
|
|
- event: [push, manual]
|
|
|
|
branch:
|
|
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
|
|
|
|
2023-12-22 11:00:02 +00:00
|
|
|
- name: assets-main
|
2023-08-25 21:35:44 +00:00
|
|
|
image: docker.io/library/node:lts
|
|
|
|
commands:
|
2023-12-22 11:00:02 +00:00
|
|
|
- npm install --quiet --no-progress
|
2023-08-25 21:35:44 +00:00
|
|
|
- npm run build
|
|
|
|
- npm run svg-sprite-list
|
|
|
|
- mkdir -p exampleSite/themes/ && ln -s $(pwd)/ exampleSite/themes/${CI_REPO_NAME}
|
|
|
|
environment:
|
|
|
|
FORCE_COLOR: "true"
|
|
|
|
when:
|
|
|
|
- event: [pull_request]
|
|
|
|
|
2023-12-22 11:00:02 +00:00
|
|
|
- name: build
|
2024-10-27 21:44:00 +00:00
|
|
|
image: quay.io/thegeeklab/hugo:0.136.5
|
2023-08-25 21:35:44 +00:00
|
|
|
commands:
|
|
|
|
- hugo --panicOnWarning -s exampleSite/
|
|
|
|
|
2023-12-22 11:00:02 +00:00
|
|
|
- name: beautify
|
2023-08-25 21:35:44 +00:00
|
|
|
image: quay.io/thegeeklab/alpine-tools
|
|
|
|
commands:
|
|
|
|
- html-beautify -r -f 'exampleSite/public/**/*.html'
|
|
|
|
environment:
|
|
|
|
FORCE_COLOR: "true"
|
|
|
|
|
2023-12-22 11:00:02 +00:00
|
|
|
- name: publish
|
2023-08-25 21:35:44 +00:00
|
|
|
image: quay.io/thegeeklab/wp-s3-action
|
|
|
|
settings:
|
|
|
|
access_key:
|
|
|
|
from_secret: s3_access_key
|
|
|
|
bucket: geekdocs
|
|
|
|
delete: true
|
2023-09-26 20:50:55 +00:00
|
|
|
endpoint:
|
|
|
|
from_secret: s3_endpoint
|
2023-08-25 21:35:44 +00:00
|
|
|
path_style: true
|
|
|
|
secret_key:
|
|
|
|
from_secret: s3_secret_access_key
|
|
|
|
source: exampleSite/public/
|
|
|
|
strip_prefix: exampleSite/public/
|
|
|
|
target: /${CI_REPO_NAME}
|
|
|
|
when:
|
|
|
|
- event: [tag]
|
|
|
|
- event: [push, manual]
|
|
|
|
branch:
|
|
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
2023-12-22 11:00:02 +00:00
|
|
|
status: [success, failure]
|
2023-08-25 21:35:44 +00:00
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- build-package
|