This commit is contained in:
Simon Vieille 2025-08-29 14:36:28 +02:00
commit 425bf2dd0d
Signed by: deblan
GPG key ID: 579388D585F70417
2 changed files with 20 additions and 2 deletions

16
.woodpecker/build.yaml Normal file
View file

@ -0,0 +1,16 @@
steps:
"Build assets":
when:
event: [push, pull_request, tag, manual]
image: image: node:20-alpine
commands:
- npm i
- make front
"Build go":
when:
event: [push, pull_request, tag, manual]
image: golang:1.25-bookworm
commands:
- go mod vendor
- make binary

View file

@ -24,11 +24,13 @@ lint:
npm run lint || true
npm run format
.PHONY:
build: front rice
binary: rice
CGO_ENABLED=$(CGO_ENABLED) \
GOARCH=$(GO_ARCH_AMD) \
GOOS=$(GO_OS_LINUX) \
$(CC) $(CFLAGS) -ldflags="$(LDFLAGS)" \
-tags=static_build \
-o $(EXECUTABLE_SERVER) ./cmd/server
.PHONY:
build: front binary