From d6eff1b6c5093f94d70d2ea99fef1b58d58935a1 Mon Sep 17 00:00:00 2001 From: Marcel Schneider Date: Fri, 5 Jun 2020 17:27:05 +0200 Subject: [PATCH] add drone settings --- .drone.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..9adda90 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,31 @@ +kind: pipeline +name: default +type: docker + +steps: +- name: test + image: rust:alpine + commands: + - cargo build --verbose --all + - cargo test --verbose --all + +- name: build + image: rust:alpine + commands: + - cargo build --release + when: + event: + - tag + +- name: gitea_release + image: plugins/gitea-release + settings: + api_key: + from_secret: api_key + base_url: https://git.schneider-hosting.de + files: dist/* + when: + event: + - tag + depends_on: + - build