ci: migrate to 'exec' runner
Now that I have written a script to do the Matrix notification, I can do that.
This commit is contained in:
parent
40380be139
commit
dd1742b5b8
43
.drone.yml
43
.drone.yml
|
@ -1,24 +1,27 @@
|
||||||
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: check config
|
type: exec
|
||||||
|
name: NixOS config check
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: format check
|
- name: format check
|
||||||
image: nixos/nix
|
commands:
|
||||||
commands:
|
- nix develop -c nixpkgs-fmt .
|
||||||
- nix-shell -p nixpkgs-fmt --run 'nixpkgs-fmt . --check'
|
|
||||||
|
|
||||||
- name: notify
|
- name: notifiy
|
||||||
image: plugins/matrix
|
commands:
|
||||||
settings:
|
- nix run .#matrix-notifier
|
||||||
homeserver:
|
environment:
|
||||||
from_secret: matrix_homeserver
|
ADDRESS:
|
||||||
roomid:
|
from_secret: matrix_homeserver
|
||||||
from_secret: matrix_roomid
|
ROOM:
|
||||||
username:
|
from_secret: matrix_roomid
|
||||||
from_secret: matrix_username
|
USER:
|
||||||
password:
|
from_secret: matrix_username
|
||||||
from_secret: matrix_password
|
PASS:
|
||||||
trigger:
|
from_secret: matrix_password
|
||||||
status:
|
when:
|
||||||
- failure
|
status:
|
||||||
- success
|
- failure
|
||||||
|
- success
|
||||||
|
...
|
||||||
|
|
Loading…
Reference in a new issue