woodpecker-helm3/.drone.yml
Erin Call 173cf374f9
Run linting on an image with golint preinstalled
Running `go get` adds a line to `go.mod` every time, so using a
preinstalled golint avoids churn.
2019-12-16 15:44:46 -08:00

28 lines
614 B
YAML

kind: pipeline
type: docker
name: default
steps:
- name: test
image: golang:1.13
commands:
- go test ./cmd/... ./internal/...
- go vet ./cmd/... ./internal/...
- name: lint
image: cytopia/golint
commands:
- golint -set_exit_status ./cmd/... ./internal/...
- name: build
image: golang:1.13
commands:
- go build -o build/drone-helm cmd/drone-helm/main.go
- name: publish
image: plugins/docker
auto_tag: true
settings:
dockerfile: Dockerfile
registry: '192.168.0.17:5000'
repo: 192.168.0.17:5000/drone-helm3
insecure: true