ci: migrate to 'exec' runner
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Now that I have written a script to do the Matrix notification, I can do that.
This commit is contained in:
parent
b04c1b09ea
commit
b8be3d80a8
25
.drone.yml
25
.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-shell -p nixpkgs-fmt --run 'nixpkgs-fmt . --check'
|
- nix develop -c nixpkgs-fmt .
|
||||||
|
|
||||||
- name: notify
|
- name: notifiy
|
||||||
image: plugins/matrix
|
commands:
|
||||||
settings:
|
- nix run .#matrix-notifier
|
||||||
homeserver:
|
environment:
|
||||||
|
ADDRESS:
|
||||||
from_secret: matrix_homeserver
|
from_secret: matrix_homeserver
|
||||||
roomid:
|
ROOM:
|
||||||
from_secret: matrix_roomid
|
from_secret: matrix_roomid
|
||||||
username:
|
USER:
|
||||||
from_secret: matrix_username
|
from_secret: matrix_username
|
||||||
password:
|
PASS:
|
||||||
from_secret: matrix_password
|
from_secret: matrix_password
|
||||||
trigger:
|
when:
|
||||||
status:
|
status:
|
||||||
- failure
|
- failure
|
||||||
- success
|
- success
|
||||||
|
...
|
||||||
|
|
Loading…
Reference in a new issue