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
27
.drone.yml
27
.drone.yml
|
@ -1,24 +1,27 @@
|
|||
---
|
||||
kind: pipeline
|
||||
name: check config
|
||||
type: exec
|
||||
name: NixOS config check
|
||||
|
||||
steps:
|
||||
- name: format check
|
||||
image: nixos/nix
|
||||
- name: format check
|
||||
commands:
|
||||
- nix-shell -p nixpkgs-fmt --run 'nixpkgs-fmt . --check'
|
||||
- nix develop -c nixpkgs-fmt .
|
||||
|
||||
- name: notify
|
||||
image: plugins/matrix
|
||||
settings:
|
||||
homeserver:
|
||||
- name: notifiy
|
||||
commands:
|
||||
- nix run .#matrix-notifier
|
||||
environment:
|
||||
ADDRESS:
|
||||
from_secret: matrix_homeserver
|
||||
roomid:
|
||||
ROOM:
|
||||
from_secret: matrix_roomid
|
||||
username:
|
||||
USER:
|
||||
from_secret: matrix_username
|
||||
password:
|
||||
PASS:
|
||||
from_secret: matrix_password
|
||||
trigger:
|
||||
when:
|
||||
status:
|
||||
- failure
|
||||
- success
|
||||
...
|
||||
|
|
Loading…
Reference in a new issue