25 lines
520 B
YAML
25 lines
520 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: build
|
|
|
|
steps:
|
|
- name: test
|
|
image: golang:1.13
|
|
commands:
|
|
- go test -test.v -cover `go list ./... | grep -v examples | grep -v internal`
|
|
environment:
|
|
GOFLAGS: -mod=vendor
|
|
- name: lint
|
|
image: golangci/golangci-lint:v1.19.1
|
|
commands:
|
|
- golangci-lint -v run
|
|
environment:
|
|
GOFLAGS: -mod=vendor
|
|
- name: build
|
|
image: plugins/docker
|
|
settings:
|
|
username: fat0troll
|
|
password:
|
|
from_secret: registry_password
|
|
repo: fat0troll/fwzookeeper
|
|
auto_tag: true |