直接提交二进制
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-06-10 08:43:16 +09:00
parent 536652938a
commit c14220d1d8

View File

@ -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