woodpecker-helm3/.drone.yml
Erin Call a71bba71fd
Give contributors some maybe-adequate information [#12]
I honestly have no idea how useful this document is, but it's probably
better than nothing?
2019-12-25 16:08:29 -08:00

42 lines
988 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_linux_amd64
image: plugins/docker
settings:
auto_tag: true
username:
from_secret: docker_username
password:
from_secret: docker_password
repo:
from_secret: plugin_repo
dockerfile: Dockerfile
when:
event: [ tag, push ]
# Example configuration for publishing to a local registry for testing.
# - name: publish_locally
# image: plugins/docker
# settings:
# dockerfile: Dockerfile
# insecure: true
# registry: 0.0.0.0:5000
# repo: 0.0.0.0:5000/drone-helm3