From 7d0d6e9483a53e19703f3abc791e45db5f2756ea Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Thu, 23 Jun 2022 09:22:04 +0200 Subject: [PATCH 1/3] ci: woodpecker: add docker pipeline --- .woodpecker/docker.yml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .woodpecker/docker.yml diff --git a/.woodpecker/docker.yml b/.woodpecker/docker.yml new file mode 100644 index 0000000..89dd9f1 --- /dev/null +++ b/.woodpecker/docker.yml @@ -0,0 +1,6 @@ +labels: + type: docker + +pipeline: + test: + image: hello-world From 242737bd0ddec3646ff846d70378bb7da764a041 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Thu, 23 Jun 2022 09:22:04 +0200 Subject: [PATCH 2/3] ci: woodpecker: add exec pipeline --- .woodpecker/exec.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .woodpecker/exec.yml diff --git a/.woodpecker/exec.yml b/.woodpecker/exec.yml new file mode 100644 index 0000000..9e9467a --- /dev/null +++ b/.woodpecker/exec.yml @@ -0,0 +1,26 @@ +labels: + type: exec + +pipeline: + test: + image: bash + commands: + - nix run 'nixpkgs#hello' + + 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 'github:ambroisie/matrix-notifier' + when: + status: + - failure + - success From 31fab05428a52ad99a5a65ddfd15762062eba021 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 1 Apr 2023 12:32:19 +0100 Subject: [PATCH 3/3] ci: woodpecker: use explicit 'name' key --- .woodpecker/docker.yml | 4 ++-- .woodpecker/exec.yml | 42 +++++++++++++++++++++--------------------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/.woodpecker/docker.yml b/.woodpecker/docker.yml index 89dd9f1..5c3ac73 100644 --- a/.woodpecker/docker.yml +++ b/.woodpecker/docker.yml @@ -2,5 +2,5 @@ labels: type: docker pipeline: - test: - image: hello-world +- name: test + image: hello-world diff --git a/.woodpecker/exec.yml b/.woodpecker/exec.yml index 9e9467a..ce78286 100644 --- a/.woodpecker/exec.yml +++ b/.woodpecker/exec.yml @@ -2,25 +2,25 @@ labels: type: exec pipeline: - test: - image: bash - commands: - - nix run 'nixpkgs#hello' +- name: test + image: bash + commands: + - nix run 'nixpkgs#hello' - 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 'github:ambroisie/matrix-notifier' - when: - status: - - failure - - success +- 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 'github:ambroisie/matrix-notifier' + when: + status: + - failure + - success