fix 修复构建问题
Some checks failed
Build image / build (push) Failing after 1m27s

This commit is contained in:
timerzz 2025-05-21 12:41:31 +08:00
parent a0c8182c28
commit 862517d724

16
.ko.yaml Normal file
View File

@ -0,0 +1,16 @@
defaultPlatforms:
- linux/amd64
defaultBaseImage: alpine:latest
builds:
- id: article
dir: . # default is .
main: .
env:
- CGO_ENABLED=0
- GOPROXY=https://goproxy.cn,direct
- GOPRIVATE=gitea.timerzz.com
- GONOSUMDB=gitea.timerzz.com
- GONOPROXY=gitea.timerzz.com
ldflags:
- -s -w
- -extldflags "-static"