build release with static binary and release custom builder (#2)

Co-authored-by: scip <scip@noreply.codeberg.org>
Co-committed-by: scip <scip@noreply.codeberg.org>
This commit is contained in:
scip
2025-11-06 23:09:56 +01:00
committed by T. von Dein
parent 1ef2e34511
commit 6221e7ae74
4 changed files with 144 additions and 0 deletions

28
.woodpecker/release.yaml Normal file
View File

@@ -0,0 +1,28 @@
# build release
labels:
platform: linux/amd64
steps:
compile:
when:
event: [tag,manual]
image: alpine:latest
commands:
- apk update
- apk add --no-cache bash build-base
- make static
- file dicepwgen_static
- mv dicepwgen_static dicepwgen-linux-amd64
release:
image: alpine:latest
when:
event: [tag,manual]
environment:
DEPLOY_TOKEN:
from_secret: DEPLOY_TOKEN
commands:
- apk update
- apk add --no-cache bash httpie jq git
- .woodpecker/release.sh dicepwgen-linux-amd64