forgejo-sdk/.drone.yml
2019-09-15 14:27:08 +00:00

51 lines
No EOL
748 B
YAML

---
kind: pipeline
name: default
platform:
os: linux
arch: amd64
clone:
disable: true
workspace:
base: /go
path: src/code.gitea.io/sdk
steps:
- name: git
pull: default
image: plugins/git:next
settings:
depth: 50
tags: true
- name: testing
pull: always
image: golang:1.13
environment:
GOPROXY: https://goproxy.cn
commands:
- make clean
- make vet
- make lint
- make test
- make build
- name: discord
pull: always
image: appleboy/drone-discord:1.0.0
environment:
DISCORD_WEBHOOK_ID:
from_secret: discord_webhook_id
DISCORD_WEBHOOK_TOKEN:
from_secret: discord_webhook_token
when:
event:
- push
- tag
- pull_request
status:
- changed
- failure