CI: add test and build
ci/woodpecker/push/docker Pipeline failed Details

This commit is contained in:
Thomas Renger 2023-02-09 22:58:25 +01:00
parent e8661aec4b
commit 80bf4a3c48
1 changed files with 10 additions and 1 deletions

View File

@ -1,5 +1,14 @@
pipeline:
docker-build:
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:
secrets: [docker_username, docker_password]
image: woodpeckerci/plugin-docker-buildx
repo: dentaku/woodpecker-helm3