2023-02-09 21:52:52 +00:00
|
|
|
pipeline:
|
2023-02-09 21:58:25 +00:00
|
|
|
test:
|
|
|
|
image: golang:1.13
|
|
|
|
commands:
|
|
|
|
- go test ./cmd/... ./internal/...
|
|
|
|
- go vet ./cmd/... ./internal/...
|
|
|
|
build:
|
|
|
|
image: golang:1.13
|
|
|
|
commands:
|
|
|
|
- GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o build/drone-helm cmd/drone-helm/main.go
|
|
|
|
docker:
|
2023-02-09 21:52:52 +00:00
|
|
|
secrets: [docker_username, docker_password]
|
|
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
|
|
repo: dentaku/woodpecker-helm3
|
|
|
|
settings:
|
|
|
|
platforms: linux/amd64
|
|
|
|
tag: latest
|
|
|
|
auto-tag: true
|