From d20a66272b944be58c1bea9c6abf8f0f359d595e Mon Sep 17 00:00:00 2001 From: cobb Date: Tue, 14 Jun 2022 09:32:14 +0800 Subject: [PATCH] release --- .drone.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.drone.yml b/.drone.yml index 987c721..85b1e48 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,6 +7,7 @@ platform: arch: amd64 steps: + # golang 编译 - name: build image: golang:1.17 @@ -96,6 +97,37 @@ steps: when: status: [failure, success] + # golang win编译 + - name: win-build + image: golang:1.17 + pull: if-not-exists + environment: + GO111MODULE: "on" + GOPROXY: "https://goproxy.io" + CGO_ENABLED: 0 + GOOS: "windows" + GOARCH: "amd64" + commands: + - go build -ldflags "-w -s" -o archive/carp.exe main.go + volumes: + - name: pkgdeps + path: /go/pkg + when: + event: + - push + - tag + + - name: gitea_release + image: plugins/gitea-release + settings: + api_key: c9092ece31ad59ade8a2f6563f0e5e8d22b326e5 + base_url: https://git.cobb.wang + files: archive/* + when: + event: + - push + - tag + volumes: # 挂载,持久化数据 - name: pkgdeps host: