globber/.drone.yml
John Olheiser 4e9babd395
All checks were successful
continuous-integration/drone/push Build is passing
Move to urfave CLI (#12)
Finish appeasing linter

Merge branch 'master' of gitea.com:jolheiser/globber into cli

Merge branch 'master' into cli

rm test file

temp add test file

make fmt

unreachable code

appease the linter

merge from upstream more closely

make fmt

Merge branch 'cli' of gitea.com:techknowlogick/globber into cli

lint fix

Merge branch 'master' into cli

remove flag as import

go fmt

Merge branch 'master' into cli

switch to urfave/cli for handling cli operations

Co-authored-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: Matti R <matti@mdranta.net>
Reviewed-on: #12
2020-04-01 03:04:41 +00:00

98 lines
1.5 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
- go build ./cmd/globber
- name: check
pull: always
image: golang:1.13
environment:
GOPROXY: https://goproxy.cn
commands:
- make lint
---
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
---
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/*"