Browse Source

release

master
cobb 4 years ago
parent
commit
d20a66272b
  1. 32
      .drone.yml

32
.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:
Loading…
Cancel
Save