Add Drone
continuous-integration/drone/pr Build is failing Details

Signed-off-by: jolheiser <john.olheiser@gmail.com>
pull/1/head
jolheiser 2021-08-08 23:27:18 -05:00
parent a701a93b81
commit cc3cbd0bd2
Signed by: jolheiser
GPG Key ID: B853ADA5DA7BBF7A
1 changed files with 41 additions and 0 deletions

41
.drone.yml 100644
View File

@ -0,0 +1,41 @@
---
kind: pipeline
name: compliance
trigger:
event:
- pull_request
steps:
- name: test
pull: always
image: golang:1.16
commands:
- go test -race ./...
- 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 git.jojodev.com/golang/go-playground/cmd/playground
- name: gitea-release
pull: always
image: jolheiser/drone-gitea-main:latest
settings:
token:
from_secret: gitea_token
base: https://git.jojodev.com
files:
- "playground"