2020-02-18 16:51:10 +01:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: compliance
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: arm64
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
pull: always
|
|
|
|
image: golang:1.13
|
|
|
|
environment:
|
|
|
|
GOPROXY: https://goproxy.cn
|
|
|
|
commands:
|
2020-02-27 03:53:11 +01:00
|
|
|
- make test
|
2020-09-13 05:59:43 +02:00
|
|
|
- make build
|
2020-02-18 16:51:10 +01:00
|
|
|
|
|
|
|
- name: check
|
|
|
|
pull: always
|
|
|
|
image: golang:1.13
|
|
|
|
environment:
|
|
|
|
GOPROXY: https://goproxy.cn
|
|
|
|
commands:
|
2020-04-17 05:59:12 +02:00
|
|
|
- make vet
|
2020-02-18 16:51:10 +01:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
2020-03-31 22:10:18 +02:00
|
|
|
name: test-release
|
2020-02-18 16:51:10 +01:00
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
event:
|
|
|
|
- push
|
2020-03-31 22:10:18 +02:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: fetch-tags
|
|
|
|
pull: always
|
|
|
|
image: docker:git
|
|
|
|
commands:
|
|
|
|
- git fetch --tags --force
|
|
|
|
|
|
|
|
- name: make-release
|
|
|
|
pull: always
|
|
|
|
image: techknowlogick/xgo:latest
|
|
|
|
environment:
|
|
|
|
GOPROXY: https://goproxy.cn
|
|
|
|
commands:
|
|
|
|
- export PATH=$PATH:$GOPATH/bin
|
|
|
|
- make release
|
|
|
|
|
2020-09-21 21:21:07 +02:00
|
|
|
- name: gitea
|
|
|
|
pull: always
|
2020-09-21 21:30:21 +02:00
|
|
|
image: jolheiser/drone-gitea-main:latest
|
2020-09-21 21:21:07 +02:00
|
|
|
settings:
|
|
|
|
token:
|
|
|
|
from_secret: gitea_token
|
|
|
|
base: https://gitea.com
|
|
|
|
files:
|
|
|
|
- "dist/release/*"
|
|
|
|
|
2020-03-31 22:10:18 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: release
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
2020-02-18 16:51:10 +01:00
|
|
|
- tag
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: fetch-tags
|
|
|
|
pull: always
|
|
|
|
image: docker:git
|
|
|
|
commands:
|
|
|
|
- git fetch --tags --force
|
|
|
|
|
2020-03-31 22:10:18 +02:00
|
|
|
- name: make-release
|
2020-02-18 16:51:10 +01:00
|
|
|
pull: always
|
|
|
|
image: techknowlogick/xgo:latest
|
|
|
|
environment:
|
|
|
|
GOPROXY: https://goproxy.cn
|
|
|
|
commands:
|
|
|
|
- export PATH=$PATH:$GOPATH/bin
|
|
|
|
- make release
|
|
|
|
|
|
|
|
- name: gitea
|
|
|
|
pull: always
|
|
|
|
image: plugins/gitea-release:1
|
|
|
|
settings:
|
|
|
|
api_key:
|
|
|
|
from_secret: gitea_token
|
|
|
|
base_url: https://gitea.com
|
|
|
|
files:
|
|
|
|
- "dist/release/*"
|