This commit is contained in:
14
.drone.yml
14
.drone.yml
@ -5,15 +5,13 @@ name: 构建 Goose
|
||||
steps:
|
||||
- name: 构建 Goose 二进制包
|
||||
image: golang:latest
|
||||
environment:
|
||||
USERNAME:
|
||||
from_secret: USERNAME
|
||||
PASSWORD:
|
||||
from_secret: API_KEY
|
||||
commands:
|
||||
- git clone https://github.com/pressly/goose.git
|
||||
- cd goose
|
||||
- go build -tags='no_mysql no_ydb no_vertica no_mssql no_libsql no_sqlite3 no_clickhouse' -o goose ./cmd/goose
|
||||
- name: 上传 Goose 二进制到 Gitea
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
api_key:
|
||||
from_secret: API_KEY
|
||||
base_url: https://gitea.service.jazzwhom.top
|
||||
files:
|
||||
- goose
|
||||
- curl --user $USERNAME:$PASSWORD --upload-file ./goose https://gitea.example.com/api/packages/kagami-public/generic/goose/$DRONE_BUILD_NUMBER/goose
|
||||
|
||||
Reference in New Issue
Block a user