From 862517d7242194b4c14a78b65d4a1f8dadecbcda Mon Sep 17 00:00:00 2001 From: timerzz Date: Wed, 21 May 2025 12:41:31 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .ko.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .ko.yaml 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"