From dd1742b5b8a92be604fe9dce7758ec9a01793678 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sun, 13 Jun 2021 18:38:06 +0200 Subject: [PATCH] ci: migrate to 'exec' runner Now that I have written a script to do the Matrix notification, I can do that. --- .drone.yml | 43 +++++++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/.drone.yml b/.drone.yml index 7ad1c78..9c5d85d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,24 +1,27 @@ +--- kind: pipeline -name: check config +type: exec +name: NixOS config check steps: - - name: format check - image: nixos/nix - commands: - - nix-shell -p nixpkgs-fmt --run 'nixpkgs-fmt . --check' +- name: format check + commands: + - nix develop -c nixpkgs-fmt . - - name: notify - image: plugins/matrix - settings: - homeserver: - from_secret: matrix_homeserver - roomid: - from_secret: matrix_roomid - username: - from_secret: matrix_username - password: - from_secret: matrix_password - trigger: - status: - - failure - - success +- name: notifiy + commands: + - nix run .#matrix-notifier + environment: + ADDRESS: + from_secret: matrix_homeserver + ROOM: + from_secret: matrix_roomid + USER: + from_secret: matrix_username + PASS: + from_secret: matrix_password + when: + status: + - failure + - success +...