From 0b55e2eace39191920176f9731bbd28bb9994d3c Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 24 Oct 2021 10:32:08 +0200 Subject: Add initial woodpecker pipeline Signed-off-by: Matthias Beyer --- .woodpecker/ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .woodpecker/ci.yml diff --git a/.woodpecker/ci.yml b/.woodpecker/ci.yml new file mode 100644 index 0000000..a9c1cf9 --- /dev/null +++ b/.woodpecker/ci.yml @@ -0,0 +1,17 @@ +pipeline: + check-service: + image: rust:${RUST_VERSION} + pull: true + commands: + - cd service-${SERVICE} + - cargo check + when: + event: [ push, pull_request ] + +matrix: + SERVICE: + - hello + - joiner + RUST_VERSION: + - latest + - 1.50.0 -- cgit v1.2.3 From 203a660e638825dff74d52c6b9d2ad5679c7a730 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 24 Oct 2021 10:40:45 +0200 Subject: woodpecker: Print matrix combination information Signed-off-by: Matthias Beyer --- .woodpecker/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.woodpecker/ci.yml b/.woodpecker/ci.yml index a9c1cf9..55ff90b 100644 --- a/.woodpecker/ci.yml +++ b/.woodpecker/ci.yml @@ -3,6 +3,7 @@ pipeline: image: rust:${RUST_VERSION} pull: true commands: + - echo "Using rust:${RUST_VERSION} on service-${SERVICE}" - cd service-${SERVICE} - cargo check when: -- cgit v1.2.3 From 68e2e7831554a390a0522e5def807f0a9bda64fc Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 24 Oct 2021 10:41:02 +0200 Subject: woodpecker: Update rust to 1.54.0 minimum supported version Signed-off-by: Matthias Beyer --- .woodpecker/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.woodpecker/ci.yml b/.woodpecker/ci.yml index 55ff90b..26b9bf9 100644 --- a/.woodpecker/ci.yml +++ b/.woodpecker/ci.yml @@ -15,4 +15,4 @@ matrix: - joiner RUST_VERSION: - latest - - 1.50.0 + - 1.54.0 -- cgit v1.2.3 From 871d57e634650b7f29fcd74483da6e5282aa9290 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 24 Oct 2021 10:55:13 +0200 Subject: woodpecker: Add missing service Signed-off-by: Matthias Beyer --- .woodpecker/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.woodpecker/ci.yml b/.woodpecker/ci.yml index 26b9bf9..8b1a2bd 100644 --- a/.woodpecker/ci.yml +++ b/.woodpecker/ci.yml @@ -12,6 +12,7 @@ pipeline: matrix: SERVICE: - hello + - world - joiner RUST_VERSION: - latest -- cgit v1.2.3 From bd06a1567c604bb65fec9ca04f8d6dae387064e3 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 24 Oct 2021 10:55:20 +0200 Subject: woodpecker: Add builds using nix Signed-off-by: Matthias Beyer --- .woodpecker/ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.woodpecker/ci.yml b/.woodpecker/ci.yml index 8b1a2bd..2e849e9 100644 --- a/.woodpecker/ci.yml +++ b/.woodpecker/ci.yml @@ -9,6 +9,17 @@ pipeline: when: event: [ push, pull_request ] + nix-build: + image: nixos/nix + commands: + - nix-build ./default.nix -A ${SERVICE}Image + + nix-build-config: + image: nixos/nix + commands: + - nix-build ./default.nix -A config + + matrix: SERVICE: - hello -- cgit v1.2.3 From 0c6e4fbff2523fd03cf693abaa7abfb84b4cfe20 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 24 Oct 2021 10:57:40 +0200 Subject: woodpecker: Split into two pipelines Signed-off-by: Matthias Beyer --- .woodpecker/ci.yml | 30 ------------------------------ .woodpecker/nix-ci.yml | 16 ++++++++++++++++ .woodpecker/rust-ci.yml | 20 ++++++++++++++++++++ 3 files changed, 36 insertions(+), 30 deletions(-) delete mode 100644 .woodpecker/ci.yml create mode 100644 .woodpecker/nix-ci.yml create mode 100644 .woodpecker/rust-ci.yml diff --git a/.woodpecker/ci.yml b/.woodpecker/ci.yml deleted file mode 100644 index 2e849e9..0000000 --- a/.woodpecker/ci.yml +++ /dev/null @@ -1,30 +0,0 @@ -pipeline: - check-service: - image: rust:${RUST_VERSION} - pull: true - commands: - - echo "Using rust:${RUST_VERSION} on service-${SERVICE}" - - cd service-${SERVICE} - - cargo check - when: - event: [ push, pull_request ] - - nix-build: - image: nixos/nix - commands: - - nix-build ./default.nix -A ${SERVICE}Image - - nix-build-config: - image: nixos/nix - commands: - - nix-build ./default.nix -A config - - -matrix: - SERVICE: - - hello - - world - - joiner - RUST_VERSION: - - latest - - 1.54.0 diff --git a/.woodpecker/nix-ci.yml b/.woodpecker/nix-ci.yml new file mode 100644 index 0000000..7332de1 --- /dev/null +++ b/.woodpecker/nix-ci.yml @@ -0,0 +1,16 @@ +pipeline: + nix-build: + image: nixos/nix + commands: + - nix-build ./default.nix -A ${SERVICE}Image + + nix-build-config: + image: nixos/nix + commands: + - nix-build ./default.nix -A config + +matrix: + SERVICE: + - hello + - world + - joiner diff --git a/.woodpecker/rust-ci.yml b/.woodpecker/rust-ci.yml new file mode 100644 index 0000000..9484493 --- /dev/null +++ b/.woodpecker/rust-ci.yml @@ -0,0 +1,20 @@ +pipeline: + check-service: + image: rust:${RUST_VERSION} + pull: true + commands: + - echo "Using rust:${RUST_VERSION} on service-${SERVICE}" + - cd service-${SERVICE} + - cargo check + when: + event: [ push, pull_request ] + +matrix: + SERVICE: + - hello + - world + - joiner + RUST_VERSION: + - latest + - 1.54.0 + -- cgit v1.2.3