From 031763ff0d2f453dd3a54ae5726f8db490a736ea Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 1 Apr 2023 17:31:26 +0100 Subject: [PATCH] ci: add Woodpecker CI workflow --- .woodpecker/check.yml | 49 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .woodpecker/check.yml diff --git a/.woodpecker/check.yml b/.woodpecker/check.yml new file mode 100644 index 0000000..f2878e9 --- /dev/null +++ b/.woodpecker/check.yml @@ -0,0 +1,49 @@ +labels: + type: exec + +pipeline: +- name: nix flake check + image: bash + commands: + - nix flake check + +- name: build + commands: + - nix build + +- name: notify + image: bash + environment: + # Use trailing slash to sync to folder's *content* to the target + - SYNC_SOURCE=result/share/ + secrets: + - source: ssh_host + target: sync_host + - source: ssh_target + target: sync_target + - source: ssh_user + target: sync_username + - source: ssh_key + target: sync_key + - source: ssh_port + target: sync_port + commands: + - nix run github:ambroisie/nix-config#drone-rsync + +- name: notify + image: bash + secrets: + - source: matrix_homeserver + target: address + - source: matrix_roomid + target: room + - source: matrix_username + target: user + - source: matrix_password + target: pass + commands: + - nix run '.#matrix-notifier' + when: + status: + - failure + - success