2019-12-03 17:50:15 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
|
|
|
image: golang:1.13
|
|
|
|
commands:
|
2019-12-09 23:27:56 +00:00
|
|
|
- go test ./cmd/... ./internal/...
|
|
|
|
- go vet ./cmd/... ./internal/...
|
2019-12-16 23:44:46 +00:00
|
|
|
- name: lint
|
|
|
|
image: cytopia/golint
|
|
|
|
commands:
|
|
|
|
- golint -set_exit_status ./cmd/... ./internal/...
|
2019-12-03 17:50:15 +00:00
|
|
|
- name: build
|
|
|
|
image: golang:1.13
|
|
|
|
commands:
|
|
|
|
- go build -o build/drone-helm cmd/drone-helm/main.go
|
2019-12-19 21:38:04 +00:00
|
|
|
- name: publish_linux_amd64
|
2019-12-03 17:50:15 +00:00
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
2019-12-19 21:38:04 +00:00
|
|
|
auto_tag: true
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo:
|
|
|
|
from_secret: plugin_repo
|
2019-12-03 17:50:15 +00:00
|
|
|
dockerfile: Dockerfile
|
2019-12-19 21:38:04 +00:00
|
|
|
when:
|
|
|
|
event: [ tag, push ]
|