ci: add Drone CI
This commit is contained in:
parent
8ae3594c68
commit
b2bf40943e
1 changed files with 31 additions and 0 deletions
31
.drone.yml
Normal file
31
.drone.yml
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: exec
|
||||||
|
name: Matrix Notifier check
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Pre-commit checks
|
||||||
|
commands:
|
||||||
|
- nix develop -c pre-commit run --all
|
||||||
|
|
||||||
|
- name: Notifiy
|
||||||
|
commands:
|
||||||
|
- nix run .
|
||||||
|
environment:
|
||||||
|
ADDRESS:
|
||||||
|
from_secret: matrix_homeserver
|
||||||
|
ROOM:
|
||||||
|
from_secret: matrix_roomid
|
||||||
|
USER:
|
||||||
|
from_secret: matrix_username
|
||||||
|
PASS:
|
||||||
|
from_secret: matrix_password
|
||||||
|
MESSAGE:
|
||||||
|
# FIXME: need to find a way to link
|
||||||
|
"Build ${DRONE_BUILD_STATUS} [${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}](${dummy_link}) (${DRONE_BRANCH}) by ${DRONE_COMMIT_AUTHOR}"
|
||||||
|
settings:
|
||||||
|
trigger:
|
||||||
|
status:
|
||||||
|
- failure
|
||||||
|
- success
|
||||||
|
...
|
||||||
Loading…
Add table
Add a link
Reference in a new issue