sip/.drone.yml
John Olheiser 1742fcc37c
Some checks reported errors
continuous-integration/drone/tag Build was killed
continuous-integration/drone/push Build is passing
Fix drone-gitea-main (#38)
Update '.drone.yml'

Reviewed-on: #38
2020-09-21 19:30:21 +00:00

108 lines
1.7 KiB
YAML

---
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:
- make test
- make build
- name: check
pull: always
image: golang:1.13
environment:
GOPROXY: https://goproxy.cn
commands:
- make vet
---
kind: pipeline
name: test-release
platform:
os: linux
arch: amd64
trigger:
branch:
- master
event:
- push
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
- name: gitea
pull: always
image: jolheiser/drone-gitea-main:latest
settings:
token:
from_secret: gitea_token
base: https://gitea.com
files:
- "dist/release/*"
---
kind: pipeline
name: release
platform:
os: linux
arch: amd64
trigger:
event:
- tag
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
- name: gitea
pull: always
image: plugins/gitea-release:1
settings:
api_key:
from_secret: gitea_token
base_url: https://gitea.com
files:
- "dist/release/*"