add ci
This commit is contained in:
parent
49701c8430
commit
425bf2dd0d
2 changed files with 20 additions and 2 deletions
16
.woodpecker/build.yaml
Normal file
16
.woodpecker/build.yaml
Normal 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
|
||||
6
Makefile
6
Makefile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue