wg-quicker/.drone.yml
Marvin Steadfast 739848b99f
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/tag Build is failing
always pull new images
2021-03-08 09:42:43 +01:00

77 lines
1.4 KiB
YAML

---
kind: pipeline
name: default
steps:
- name: tags
image: alpine/git
commands:
- git fetch --tags
- name: submodules
image: alpine/git
commands:
- git submodule init
- git submodule update
- name: go-bindata
image: golang:latest
pull: always
commands:
- (cd /tmp; go get -u github.com/go-bindata/go-bindata/...)
- go-bindata -pkg assets -o assets/bindata.go -nomemcopy /bin/true
- name: lint
image: golangci/golangci-lint:latest
pull: always
commands:
- make lint
depends_on:
- go-bindata
- name: test
image: golang:latest
commands:
- make test
depends_on:
- go-bindata
- name: clean
image: golang:latest
commands:
- make clean
- git checkout -- .
depends_on:
- lint
- test
- name: build
image: goreleaser/goreleaser:latest
pull: always
commands:
- (cd /tmp; go get -u github.com/go-bindata/go-bindata/...)
- make build
depends_on:
- submodules
- clean
when:
event:
exclude:
- tag
- name: release
image: goreleaser/goreleaser:latest
pull: always
environment:
GITHUB_TOKEN:
from_secret: github_token
commands:
- (cd /tmp; go get -u github.com/go-bindata/go-bindata/...)
- goreleaser release --rm-dist --parallelism=1
depends_on:
- submodules
- clean
when:
event:
- tag