diff --git a/.ko.yaml b/.ko.yaml new file mode 100644 index 0000000..b2e102e --- /dev/null +++ b/.ko.yaml @@ -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"