From f069db1316122f67ee5557353a2f3d6ce10da95a Mon Sep 17 00:00:00 2001 From: Joey Hines Date: Thu, 4 Mar 2021 20:24:39 -0600 Subject: [PATCH] Added .drone.yml --- .drone.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..b9834de --- /dev/null +++ b/.drone.yml @@ -0,0 +1,39 @@ +--- +kind: pipeline +name: compliance +type: docker +trigger: + event: + - pull_request +steps: + - name: build + pull: always + image: rust:1.52.0 + commands: + - rustup component add clippy + - cargo build --verbose + - cargo clippy +--- +kind: pipeline +name: release +type: docker +trigger: + branch: + - master + event: + - push +steps: + - name: build + pull: always + image: rust:1.52.0 + commands: + - cargo build --verbose --release + - name: gitea-release + pull: always + image: jolheiser/drone-gitea-main:latest + settings: + token: + from_secret: gitea_token + base: https://git.etztech.xyz + files: + - "target/release/hype_bot" \ No newline at end of file