template/.ko.yaml

17 lines
376 B
YAML
Raw Normal View History

2024-09-04 16:52:46 +08:00
defaultPlatforms:
- linux/amd64
defaultBaseImage: alpine:latest
builds:
- id: ${REPO_NAME}
dir: . # default is .
main: ./cmd
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"