2023-08-24 22:02:01 +00:00
|
|
|
---
|
|
|
|
when:
|
|
|
|
- event: [pull_request, tag]
|
|
|
|
- event: [push, manual]
|
|
|
|
branch:
|
|
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
|
|
|
|
|
|
|
steps:
|
2023-12-23 22:24:56 +00:00
|
|
|
- name: assets
|
2023-08-24 22:02:01 +00:00
|
|
|
image: quay.io/thegeeklab/alpine-tools
|
|
|
|
commands:
|
|
|
|
- make doc
|
|
|
|
|
2023-12-23 22:24:56 +00:00
|
|
|
- name: markdownlint
|
2023-08-24 22:02:01 +00:00
|
|
|
image: quay.io/thegeeklab/markdownlint-cli
|
2024-10-27 20:11:00 +00:00
|
|
|
depends_on: [assets]
|
2023-08-24 22:02:01 +00:00
|
|
|
commands:
|
|
|
|
- markdownlint 'README.md' 'CONTRIBUTING.md'
|
|
|
|
|
2023-12-23 22:24:56 +00:00
|
|
|
- name: spellcheck
|
2023-08-24 22:02:01 +00:00
|
|
|
image: quay.io/thegeeklab/alpine-tools
|
2024-10-27 20:11:00 +00:00
|
|
|
depends_on: [assets]
|
2023-08-24 22:02:01 +00:00
|
|
|
commands:
|
2023-12-23 22:24:56 +00:00
|
|
|
- spellchecker --files 'docs/**/*.md' 'README.md' 'CONTRIBUTING.md' -d .dictionary -p spell indefinite-article syntax-urls
|
2023-08-24 22:02:01 +00:00
|
|
|
environment:
|
|
|
|
FORCE_COLOR: "true"
|
|
|
|
|
2023-12-23 22:24:56 +00:00
|
|
|
- name: link-validation
|
2023-10-16 19:34:09 +00:00
|
|
|
image: docker.io/lycheeverse/lychee
|
2024-10-27 20:11:00 +00:00
|
|
|
depends_on: [assets]
|
2023-10-16 19:34:09 +00:00
|
|
|
commands:
|
|
|
|
- lychee --no-progress --format detailed docs/content README.md
|
|
|
|
|
2023-12-23 22:24:56 +00:00
|
|
|
- name: build
|
2024-09-11 20:44:58 +00:00
|
|
|
image: quay.io/thegeeklab/hugo:0.133.0
|
2024-10-27 20:11:00 +00:00
|
|
|
depends_on: [link-validation]
|
2023-08-24 22:02:01 +00:00
|
|
|
commands:
|
|
|
|
- hugo --panicOnWarning -s docs/
|
|
|
|
|
2023-12-23 22:24:56 +00:00
|
|
|
- name: beautify
|
2023-08-24 22:02:01 +00:00
|
|
|
image: quay.io/thegeeklab/alpine-tools
|
2024-10-27 20:11:00 +00:00
|
|
|
depends_on: [build]
|
2023-08-24 22:02:01 +00:00
|
|
|
commands:
|
|
|
|
- html-beautify -r -f 'docs/public/**/*.html'
|
|
|
|
|
2023-12-23 22:24:56 +00:00
|
|
|
- name: publish
|
2023-08-24 22:02:01 +00:00
|
|
|
image: quay.io/thegeeklab/wp-s3-action
|
2024-10-27 20:11:00 +00:00
|
|
|
depends_on: [beautify]
|
2023-08-24 22:02:01 +00:00
|
|
|
settings:
|
|
|
|
access_key:
|
|
|
|
from_secret: s3_access_key
|
|
|
|
bucket: geekdocs
|
|
|
|
delete: true
|
2023-09-26 19:40:30 +00:00
|
|
|
endpoint:
|
|
|
|
from_secret: s3_endpoint
|
2023-08-24 22:02:01 +00:00
|
|
|
path_style: true
|
|
|
|
secret_key:
|
|
|
|
from_secret: s3_secret_access_key
|
|
|
|
source: docs/public/
|
|
|
|
strip_prefix: docs/public/
|
|
|
|
target: /${CI_REPO_NAME}
|
|
|
|
when:
|
|
|
|
- event: [push, manual]
|
|
|
|
branch:
|
|
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
2023-12-23 22:24:56 +00:00
|
|
|
status: [success, failure]
|
2023-08-24 22:02:01 +00:00
|
|
|
|
2023-12-23 22:24:56 +00:00
|
|
|
- name: pushrm-dockerhub
|
2023-08-24 22:02:01 +00:00
|
|
|
image: docker.io/chko/docker-pushrm:1
|
2024-10-27 20:11:00 +00:00
|
|
|
depends_on: [publish]
|
2023-08-24 22:02:01 +00:00
|
|
|
environment:
|
2024-10-27 20:11:00 +00:00
|
|
|
DOCKER_PASS:
|
|
|
|
from_secret: docker_password
|
|
|
|
DOCKER_USER:
|
|
|
|
from_secret: docker_username
|
2023-08-24 22:02:01 +00:00
|
|
|
PUSHRM_FILE: README.md
|
|
|
|
PUSHRM_SHORT: Annotation based documentation for your Ansible roles
|
|
|
|
PUSHRM_TARGET: ${CI_REPO}
|
|
|
|
when:
|
|
|
|
- event: [push, manual]
|
|
|
|
branch:
|
|
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
|
|
|
status: [success]
|
|
|
|
|
2023-12-23 22:24:56 +00:00
|
|
|
- name: pushrm-quay
|
2023-08-24 22:02:01 +00:00
|
|
|
image: docker.io/chko/docker-pushrm:1
|
2024-10-27 20:11:00 +00:00
|
|
|
depends_on: [publish]
|
2023-08-24 22:02:01 +00:00
|
|
|
environment:
|
2024-10-27 20:11:00 +00:00
|
|
|
APIKEY__QUAY_IO:
|
|
|
|
from_secret: quay_token
|
2023-08-24 22:02:01 +00:00
|
|
|
PUSHRM_FILE: README.md
|
|
|
|
PUSHRM_TARGET: quay.io/${CI_REPO}
|
|
|
|
when:
|
|
|
|
- event: [push, manual]
|
|
|
|
branch:
|
|
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
|
|
|
status: [success]
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- build-package
|
|
|
|
- build-container
|