This commit is contained in:
parent
8223afcadb
commit
c23a09663d
13
.drone.yml
13
.drone.yml
@ -5,18 +5,15 @@ steps:
|
|||||||
- name: gobuild
|
- name: gobuild
|
||||||
image: golang:alpine
|
image: golang:alpine
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
environment:
|
|
||||||
- GOPROXY=https://goproxy.cn
|
|
||||||
commands:
|
commands:
|
||||||
- sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
- sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
||||||
- apk update && apk add build-base
|
- apk update && apk add build-base
|
||||||
- CGO_ENABLED=1 go build
|
- GOPROXY=https://goproxy.cn CGO_ENABLED=1 go build
|
||||||
|
- name: gitea_release
|
||||||
- name: release
|
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
settings:
|
settings:
|
||||||
api_key:
|
api_key:
|
||||||
from_secret: gitea_token
|
from_secret: gitea_token
|
||||||
base_url: https://git.rainss.cn
|
base_url: https://git.rainss.cn
|
||||||
files:
|
files:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user