woodpecker-helm3/.drone.yml

36 lines
791 B
YAML
Raw Normal View History

kind: pipeline
type: docker
name: default
2022-08-23 15:31:37 +00:00
platform:
os: linux
arch: amd64
steps:
- name: test
image: golang:1.13
commands:
2019-12-09 23:27:56 +00:00
- 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:
2022-08-23 16:11:21 +00:00
- GOOS=linux GOARCH=amd64 CGO_ENABLED=0 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 ]