watcher/.ko.yaml
timerzz 0edc7d8678
Some checks failed
Build image / build (push) Failing after 1m23s
feat 使用ko进行构建
2024-05-23 11:19:43 +08:00

17 lines
372 B
YAML

defaultPlatforms:
- linux/amd64
defaultBaseImage: alpine:latest
builds:
- id: watcher
dir: . # default is .
main: ./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"