From b4d9c9b8aaf3afd8869d0ec5e52852d532c201ea Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 20 Mar 2024 17:36:05 +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 2cfae99..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.d53 - - - name: test - image: nixpkgs/nix:nixos-22.05 - commands: - - nix build --extra-experimental-features nix-command --extra-experimental-features flakes .#test.x86_64-linux.d53 - - ./result-bin/bin/d53-* - -trigger: - event: - - custom - - push - - pull_request - - tag - - cron - - ---- -kind: signature -hmac: 532a3c9927d7b63a4e9d3bc8ad8deda4f164b4477ca992f9e59c3a7c13752d54 - -... diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..e39aaa9 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,26 @@ +trigger: + event: + - push + - pull_request + - tag + - cron + - manual + +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.d53 + + - name: test + image: nixpkgs/nix:nixos-22.05 + commands: + - nix build --extra-experimental-features nix-command --extra-experimental-features flakes .#test.x86_64-linux.d53 + - ./result-bin/bin/d53-* diff --git a/README.md b/README.md index 1e08db3..9569b20 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ D53 === -[![Build Status](https://drone.deuxfleurs.fr/api/badges/lx/D53/status.svg)](https://drone.deuxfleurs.fr/lx/D53) +[![status-badge](https://woodpecker.deuxfleurs.fr/api/badges/39/status.svg)](https://woodpecker.deuxfleurs.fr/repos/39) D53 is a dynamic DNS updater that sources information from Consul to route services to the correct place -- cgit v1.2.3