2020-07-21 21:08:00 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: build
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
limit: 1
|
|
|
|
|
|
|
|
steps:
|
2020-11-22 14:45:47 +00:00
|
|
|
- name: generate
|
2020-11-01 23:11:17 +00:00
|
|
|
image: thegeeklab/alpine-tools
|
2020-07-21 21:08:00 +00:00
|
|
|
commands:
|
2020-11-22 14:45:47 +00:00
|
|
|
- make doc
|
2020-07-21 21:08:00 +00:00
|
|
|
|
|
|
|
- name: markdownlint
|
2020-11-01 21:08:16 +00:00
|
|
|
image: thegeeklab/markdownlint-cli
|
2020-07-21 21:08:00 +00:00
|
|
|
commands:
|
|
|
|
- markdownlint 'content/**/*.md' 'README.md'
|
|
|
|
|
|
|
|
- name: spellcheck
|
|
|
|
image: node:lts-alpine
|
|
|
|
commands:
|
|
|
|
- npm install -g spellchecker-cli
|
2020-07-21 21:15:48 +00:00
|
|
|
- spellchecker --files 'content/**/*.md' 'README.md' -d .dictionary -p spell indefinite-article syntax-urls frontmatter --frontmatter-keys title tags --no-suggestions
|
2020-07-21 21:08:00 +00:00
|
|
|
environment:
|
|
|
|
FORCE_COLOR: true
|
|
|
|
NPM_CONFIG_LOGLEVEL: error
|
|
|
|
|
2021-08-31 08:34:30 +00:00
|
|
|
- name: favicons
|
|
|
|
image: node:lts-alpine
|
|
|
|
commands:
|
|
|
|
- npm install > /dev/null
|
|
|
|
- npx gulp favicon
|
|
|
|
environment:
|
|
|
|
FORCE_COLOR: true
|
|
|
|
NPM_CONFIG_LOGLEVEL: error
|
|
|
|
|
2020-07-21 21:08:00 +00:00
|
|
|
- name: testbuild
|
2021-05-06 20:46:14 +00:00
|
|
|
image: thegeeklab/hugo:0.83.1
|
2020-07-21 21:08:00 +00:00
|
|
|
commands:
|
2021-05-06 20:42:11 +00:00
|
|
|
- hugo -b http://localhost/
|
2020-07-21 21:08:00 +00:00
|
|
|
|
|
|
|
- name: link-validation
|
2020-09-24 08:40:17 +00:00
|
|
|
image: thegeeklab/link-validator
|
2020-07-21 21:08:00 +00:00
|
|
|
commands:
|
|
|
|
- link-validator -ro
|
|
|
|
environment:
|
|
|
|
LINK_VALIDATOR_BASE_DIR: public/
|
|
|
|
|
|
|
|
- name: build
|
2021-05-06 20:46:14 +00:00
|
|
|
image: thegeeklab/hugo:0.83.1
|
2020-07-21 21:08:00 +00:00
|
|
|
commands:
|
2021-05-06 20:42:11 +00:00
|
|
|
- hugo
|
2020-07-21 21:08:00 +00:00
|
|
|
|
|
|
|
- name: beautify
|
|
|
|
image: node:lts-alpine
|
|
|
|
commands:
|
|
|
|
- npm install -g js-beautify
|
|
|
|
- html-beautify -r -f 'public/**/*.html'
|
|
|
|
environment:
|
|
|
|
FORCE_COLOR: true
|
|
|
|
NPM_CONFIG_LOGLEVEL: error
|
|
|
|
|
|
|
|
- name: publish
|
|
|
|
image: plugins/s3-sync
|
|
|
|
settings:
|
|
|
|
access_key:
|
|
|
|
from_secret: s3_access_key
|
|
|
|
bucket: thegeeklab-root
|
|
|
|
delete: true
|
|
|
|
endpoint: https://sp.rknet.org
|
|
|
|
path_style: true
|
|
|
|
secret_key:
|
|
|
|
from_secret: s3_secret_access_key
|
|
|
|
source: public/
|
|
|
|
strip_prefix: public/
|
2020-11-22 18:24:20 +00:00
|
|
|
when:
|
|
|
|
ref:
|
2021-01-09 21:06:53 +00:00
|
|
|
- refs/heads/main
|
2020-11-22 18:24:20 +00:00
|
|
|
- refs/tags/**
|
2020-07-21 21:08:00 +00:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
ref:
|
2021-01-09 21:06:53 +00:00
|
|
|
- refs/heads/main
|
2020-07-21 21:08:00 +00:00
|
|
|
- refs/tags/**
|
2020-11-22 18:24:20 +00:00
|
|
|
- refs/pull/**
|
2020-07-21 21:08:00 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: notifications
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: matrix
|
|
|
|
image: plugins/matrix
|
|
|
|
settings:
|
|
|
|
homeserver:
|
|
|
|
from_secret: matrix_homeserver
|
|
|
|
password:
|
|
|
|
from_secret: matrix_password
|
|
|
|
roomid:
|
|
|
|
from_secret: matrix_roomid
|
|
|
|
template: "Status: **{{ build.status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}<br/> Message: {{ build.message }}"
|
|
|
|
username:
|
|
|
|
from_secret: matrix_username
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
ref:
|
2021-01-09 21:06:53 +00:00
|
|
|
- refs/heads/main
|
2020-07-21 21:08:00 +00:00
|
|
|
- refs/tags/**
|
|
|
|
status:
|
|
|
|
- success
|
|
|
|
- failure
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- build
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: signature
|
2021-08-31 08:34:30 +00:00
|
|
|
hmac: 435256421217bc48a6dc985b5fe5e0109ce3a4ada42a9fcda68a07413091d48f
|
2020-07-21 21:08:00 +00:00
|
|
|
|
|
|
|
...
|