dl/.drone.yml

41 lines
692 B
YAML
Raw Normal View History

---
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/dl/cmd/godl
- name: gitea-release
pull: always
image: jolheiser/drone-gitea-main:latest
settings:
token:
from_secret: gitea_token
base: https://git.jojodev.com
files:
- "godl"