18 lines
501 B
YAML
18 lines
501 B
YAML
pipeline:
|
|
test:
|
|
image: golang:1.20
|
|
commands:
|
|
- go test ./cmd/... ./internal/...
|
|
- go vet ./cmd/... ./internal/...
|
|
build:
|
|
image: golang:1.20
|
|
commands:
|
|
- GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o build/drone-helm cmd/drone-helm/main.go
|
|
docker:
|
|
secrets: [docker_username, docker_password]
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
settings:
|
|
repo: dentaku/woodpecker-helm3
|
|
platforms: linux/amd64
|
|
tag: latest
|
|
auto-tag: true |