Updated Woodpecker config to do better release binaries
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
Gregory Ballantine 2022-02-26 00:41:32 -05:00
parent 1b9e8b5a44
commit 9dc39dbe53

View File

@ -5,6 +5,16 @@ pipeline:
- go get
- go build
build_release:
image: golang:1.16
commands:
- go get
- GOOS=windows GOARCH=amd64 go build -o dist/bgbench-windows-x86_64-${CI_COMMIT_TAG}.exe
- GOOS=linux GOARCH=amd64 go build -o dist/bench-linux-x86_64-${CI_COMMIT_TAG}
- GOOS=darwin GOARCH=amd64 go build -o dist/bench-macos-x86_64-${CI_COMMIT_TAG}
when:
event: tag
gitea_release:
image: plugins/gitea-release
settings:
@ -12,7 +22,7 @@ pipeline:
from_secret: gitea_api_key
base_url: https://git.metaunix.net
files:
- hardware-tests
- dist/*
title: "${CI_COMMIT_TAG}"
when:
event: tag