thegeeklab/.drone.yml

129 lines
2.4 KiB
YAML
Raw Normal View History

2020-07-21 23:08:00 +02:00
---
kind: pipeline
name: build
platform:
os: linux
arch: amd64
concurrency:
limit: 1
steps:
2020-11-22 15:45:47 +01:00
- name: generate
2020-11-02 00:11:17 +01:00
image: thegeeklab/alpine-tools
2020-07-21 23:08:00 +02:00
commands:
2020-11-22 15:45:47 +01:00
- make doc
2020-07-21 23:08:00 +02:00
- name: markdownlint
2020-11-01 22:08:16 +01:00
image: thegeeklab/markdownlint-cli
2020-07-21 23:08:00 +02:00
commands:
- markdownlint 'content/**/*.md' 'README.md'
- name: spellcheck
image: node:lts-alpine
commands:
- npm install -g spellchecker-cli
2020-07-21 23:15:48 +02: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 23:08:00 +02:00
environment:
FORCE_COLOR: true
NPM_CONFIG_LOGLEVEL: error
- 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 23:08:00 +02:00
- name: testbuild
2021-05-06 22:46:14 +02:00
image: thegeeklab/hugo:0.83.1
2020-07-21 23:08:00 +02:00
commands:
2021-05-06 22:42:11 +02:00
- hugo -b http://localhost/
2020-07-21 23:08:00 +02:00
- name: link-validation
2020-09-24 10:40:17 +02:00
image: thegeeklab/link-validator
2020-07-21 23:08:00 +02:00
commands:
- link-validator -ro
environment:
LINK_VALIDATOR_BASE_DIR: public/
- name: build
2021-05-06 22:46:14 +02:00
image: thegeeklab/hugo:0.83.1
2020-07-21 23:08:00 +02:00
commands:
2021-05-06 22:42:11 +02:00
- hugo
2020-07-21 23:08:00 +02: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 19:24:20 +01:00
when:
ref:
- refs/heads/main
2020-11-22 19:24:20 +01:00
- refs/tags/**
2020-07-21 23:08:00 +02:00
trigger:
ref:
- refs/heads/main
2020-07-21 23:08:00 +02:00
- refs/tags/**
2020-11-22 19:24:20 +01:00
- refs/pull/**
2020-07-21 23:08:00 +02: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:
- refs/heads/main
2020-07-21 23:08:00 +02:00
- refs/tags/**
status:
- success
- failure
depends_on:
- build
---
kind: signature
hmac: 435256421217bc48a6dc985b5fe5e0109ce3a4ada42a9fcda68a07413091d48f
2020-07-21 23:08:00 +02:00
...