From 66faf0d14d249be633df9a581cb94770e09efc16 Mon Sep 17 00:00:00 2001 From: jolheiser Date: Thu, 24 Feb 2022 22:20:31 -0600 Subject: [PATCH] Add woodpecker Signed-off-by: jolheiser --- .woodpecker.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .woodpecker.yml diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..0cd8ae9 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,31 @@ +clone: + git: + image: woodpeckerci/plugin-git:next + +pipeline: + compliance: + image: golang:1.17 + commands: + - go test -race ./... + - go vet ./... + when: + event: pull_request + + build: + image: golang:1.17 + commands: + - GOOS="linux" go build + - GOOS="windows" go build + + release-main: + image: jolheiser/drone-gitea-main:latest + settings: + base: https://git.jojodev.com + token: + from_secret: gitea_token + files: + - "cabinet" + - "cabinet.exe" + when: + event: push + branch: main