matrix-notifier/.drone.yml

32 lines
635 B
YAML
Raw Normal View History

---
kind: pipeline
type: exec
name: Matrix Notifier check
steps:
2021-06-12 16:53:14 +02:00
- name: Pre-commit checks
commands:
- nix flake check
- name: Notifiy
commands:
2021-06-12 16:53:14 +02:00
- 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
...