Added .drone.yml

async_update
Joey Hines 2021-03-04 20:24:39 -06:00
parent 7a8cbba73c
commit f069db1316
No known key found for this signature in database
GPG Key ID: 80F567B5C968F91B
1 changed files with 39 additions and 0 deletions

39
.drone.yml 100644
View File

@ -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"