wg-quicker/.drone.yml
Marvin Steadfast 167c003387
Some checks reported errors
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build was killed
getting drone to work
2021-01-21 13:04:58 +01:00

84 lines
1.5 KiB
YAML

---
kind: pipeline
name: default
steps:
- name: fetch
image: docker:git
commands:
- git fetch --tags
- name: go-bindata
image: golang:latest
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
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
volumes:
- name: dockersock
path: /var/run
environment:
commands:
- (cd /tmp; go get -u github.com/go-bindata/go-bindata/...)
- make build
when:
event:
exclude:
- tag
depends_on:
- clean
- name: release
image: goreleaser/goreleaser:latest
volumes:
- name: dockersock
path: /var/run
environment:
GITEA_TOKEN:
from_secret: gitea_token
commands:
- (cd /tmp; go get -u github.com/go-bindata/go-bindata/...)
- goreleaser release --rm-dist --parallelism=1
when:
event:
- tag
depends_on:
- clean
services:
- name: docker
image: docker:dind
privileged: true
volumes:
- name: dockersock
path: /var/run
volumes:
- name: dockersock
temp: {}