ci: switch to drone-matrix plugin
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
159150a603
commit
bf8882a5f8
32
.drone.yml
32
.drone.yml
@ -10,17 +10,17 @@ concurrency:
|
|||||||
limit: 1
|
limit: 1
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: generate
|
- name: generate
|
||||||
image: thegeeklab/alpine-tools
|
image: thegeeklab/alpine-tools
|
||||||
commands:
|
commands:
|
||||||
- make doc
|
- make doc
|
||||||
|
|
||||||
- name: markdownlint
|
- name: markdownlint
|
||||||
image: thegeeklab/markdownlint-cli
|
image: thegeeklab/markdownlint-cli
|
||||||
commands:
|
commands:
|
||||||
- markdownlint 'content/**/*.md' 'README.md'
|
- markdownlint 'content/**/*.md' 'README.md'
|
||||||
|
|
||||||
- name: spellcheck
|
- name: spellcheck
|
||||||
image: node:lts-alpine
|
image: node:lts-alpine
|
||||||
commands:
|
commands:
|
||||||
- npm install -g spellchecker-cli
|
- npm install -g spellchecker-cli
|
||||||
@ -29,7 +29,7 @@ steps:
|
|||||||
FORCE_COLOR: true
|
FORCE_COLOR: true
|
||||||
NPM_CONFIG_LOGLEVEL: error
|
NPM_CONFIG_LOGLEVEL: error
|
||||||
|
|
||||||
- name: favicons
|
- name: favicons
|
||||||
image: node:lts-alpine
|
image: node:lts-alpine
|
||||||
commands:
|
commands:
|
||||||
- npm install > /dev/null
|
- npm install > /dev/null
|
||||||
@ -38,24 +38,24 @@ steps:
|
|||||||
FORCE_COLOR: true
|
FORCE_COLOR: true
|
||||||
NPM_CONFIG_LOGLEVEL: error
|
NPM_CONFIG_LOGLEVEL: error
|
||||||
|
|
||||||
- name: testbuild
|
- name: testbuild
|
||||||
image: thegeeklab/hugo:0.83.1
|
image: thegeeklab/hugo:0.83.1
|
||||||
commands:
|
commands:
|
||||||
- hugo -b http://localhost/
|
- hugo -b http://localhost/
|
||||||
|
|
||||||
- name: link-validation
|
- name: link-validation
|
||||||
image: thegeeklab/link-validator
|
image: thegeeklab/link-validator
|
||||||
commands:
|
commands:
|
||||||
- link-validator -ro
|
- link-validator -ro
|
||||||
environment:
|
environment:
|
||||||
LINK_VALIDATOR_BASE_DIR: public/
|
LINK_VALIDATOR_BASE_DIR: public/
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: thegeeklab/hugo:0.83.1
|
image: thegeeklab/hugo:0.83.1
|
||||||
commands:
|
commands:
|
||||||
- hugo
|
- hugo
|
||||||
|
|
||||||
- name: beautify
|
- name: beautify
|
||||||
image: node:lts-alpine
|
image: node:lts-alpine
|
||||||
commands:
|
commands:
|
||||||
- npm install -g js-beautify
|
- npm install -g js-beautify
|
||||||
@ -64,7 +64,7 @@ steps:
|
|||||||
FORCE_COLOR: true
|
FORCE_COLOR: true
|
||||||
NPM_CONFIG_LOGLEVEL: error
|
NPM_CONFIG_LOGLEVEL: error
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
image: plugins/s3-sync
|
image: plugins/s3-sync
|
||||||
settings:
|
settings:
|
||||||
access_key:
|
access_key:
|
||||||
@ -97,8 +97,8 @@ platform:
|
|||||||
arch: amd64
|
arch: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: matrix
|
- name: matrix
|
||||||
image: plugins/matrix
|
image: thegeeklab/drone-matrix
|
||||||
settings:
|
settings:
|
||||||
homeserver:
|
homeserver:
|
||||||
from_secret: matrix_homeserver
|
from_secret: matrix_homeserver
|
||||||
@ -106,9 +106,13 @@ steps:
|
|||||||
from_secret: matrix_password
|
from_secret: matrix_password
|
||||||
roomid:
|
roomid:
|
||||||
from_secret: matrix_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 }}"
|
template: "Status: **{{ build.Status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.Link }}) ({{ build.Branch }}) by {{ commit.Author }}<br/> Message: {{ commit.Message }}"
|
||||||
username:
|
username:
|
||||||
from_secret: matrix_username
|
from_secret: matrix_username
|
||||||
|
when:
|
||||||
|
status:
|
||||||
|
- success
|
||||||
|
- failure
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
ref:
|
ref:
|
||||||
@ -119,10 +123,10 @@ trigger:
|
|||||||
- failure
|
- failure
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- build
|
- build
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 435256421217bc48a6dc985b5fe5e0109ce3a4ada42a9fcda68a07413091d48f
|
hmac: cc31ad6165869f1516a7201966330197cdd92b0e698a040d92ae7dafa8ddf3b3
|
||||||
|
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user