From 45b368fd11595b30d704987a15999de81347d5d3 Mon Sep 17 00:00:00 2001 From: Joey Hines Date: Sat, 28 May 2022 16:36:11 -0600 Subject: [PATCH] Add woodpecker config --- .woodpecker.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .woodpecker.yml diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..30edfdd --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,31 @@ +clone: + git: + image: "woodpeckerci/plugin-git:next" +pipeline: + compliance: + commands: + - "rustup component add clippy" + - "cargo build --verbose" + - "cargo clippy --workspace --tests --all-targets --all-features" + - "cargo test --workspace --no-fail-fast" + image: "rust:latest" + when: + event: pull_request, push + build: + commands: + - "cargo build --release" + image: "rust:latest" + when: + branch: main + event: push + release: + image: jolheiser/drone-gitea-main:latest + settings: + token: + from_secret: gitea_token + base: https://git.jojodev.com + files: + - "target/release/woxlf" + when: + branch: main + event: push \ No newline at end of file