Add Drone

Signed-off-by: Etzelia <etzelia@hotmail.com>
main
Etzelia 2021-07-12 16:40:19 -05:00
parent 6091f30610
commit 9c65a4956e
No known key found for this signature in database
GPG Key ID: 708511AE7ABC5314
1 changed files with 42 additions and 0 deletions

42
.drone.yml 100644
View File

@ -0,0 +1,42 @@
---
kind: pipeline
name: compliance
trigger:
event:
- pull_request
steps:
- name: build
pull: always
image: golang:1.16
commands:
- go test -race ./...
- go build
- name: check
pull: always
image: golang:1.16
commands:
- go vet ./...
---
kind: pipeline
name: release
trigger:
event:
- push
branch:
- main
steps:
- name: build
pull: always
image: golang:1.16
commands:
- go build
- name: gitea-release
pull: always
image: jolheiser/drone-gitea-main:latest
settings:
token:
from_secret: gitea_token
base: https://git.canopymc.net
files:
- "stonebot"