ci: migrate to 'exec' runner
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:
Bruno BELANYI 2021-06-13 18:38:06 +02:00
parent b04c1b09ea
commit b8be3d80a8

View file

@ -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
...