From dff06115cc37b6278410a700a54a143a559c986e Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 20 Mar 2024 17:28:47 +0100 Subject: Woodpecker CI --- .drone.yml | 40 ---------------------------------------- .woodpecker.yml | 26 ++++++++++++++++++++++++++ README.md | 2 +- 3 files changed, 27 insertions(+), 41 deletions(-) delete mode 100644 .drone.yml create mode 100644 .woodpecker.yml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index d8a5180..0000000 --- a/.drone.yml +++ /dev/null @@ -1,40 +0,0 @@ ---- -kind: pipeline -name: default - -node: - nix-daemon: 1 - -steps: - - name: check formatting - image: nixpkgs/nix:nixos-22.05 - environment: - NIX_PATH: 'nixpkgs=channel:nixos-22.05' - commands: - - nix-shell -p cargo -p rustfmt --run 'cargo fmt -- --check' - - - name: build - image: nixpkgs/nix:nixos-22.05 - commands: - - nix build --extra-experimental-features nix-command --extra-experimental-features flakes .#debug.x86_64-linux.tricot - - - name: test - image: nixpkgs/nix:nixos-22.05 - commands: - - nix build --extra-experimental-features nix-command --extra-experimental-features flakes .#test.x86_64-linux.tricot - - ./result-bin/bin/tricot-* - -trigger: - event: - - custom - - push - - pull_request - - tag - - cron - - ---- -kind: signature -hmac: 49cde53ec25364cc3b3f041092c8e658fe9252342253757d86814ca12d5cb0f7 - -... diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..3c8f3d1 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,26 @@ +when: + event: + - custom + - push + - pull_request + - tag + - cron + +steps: + - name: check formatting + image: nixpkgs/nix:nixos-22.05 + environment: + NIX_PATH: 'nixpkgs=channel:nixos-22.05' + commands: + - nix-shell -p cargo -p rustfmt --run 'cargo fmt -- --check' + + - name: build + image: nixpkgs/nix:nixos-22.05 + commands: + - nix build --extra-experimental-features nix-command --extra-experimental-features flakes .#debug.x86_64-linux.tricot + + - name: test + image: nixpkgs/nix:nixos-22.05 + commands: + - nix build --extra-experimental-features nix-command --extra-experimental-features flakes .#test.x86_64-linux.tricot + - ./result-bin/bin/tricot-* diff --git a/README.md b/README.md index 63ef8dd..4238594 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Tricot -[![Build Status](https://drone.deuxfleurs.fr/api/badges/Deuxfleurs/tricot/status.svg)](https://drone.deuxfleurs.fr/Deuxfleurs/tricot) +[![status-badge](https://woodpecker.deuxfleurs.fr/api/badges/36/status.svg)](https://woodpecker.deuxfleurs.fr/repos/36) Tricot is a reverse-proxy for exposing your services via TLS that integrates well with Consul and Nomad. -- cgit v1.2.3