From b7521e21b76e0bfae96d3b2145bad8e728f5ea8b Mon Sep 17 00:00:00 2001 From: xiaoqidun Date: Tue, 7 Sep 2021 12:02:56 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=87=AA=E5=8A=A8=E6=9E=84=E5=BB=BA):=20?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 21 +++++++++++++++++++-- README.md | 2 +- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index f4ba026..5a95105 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,8 +3,25 @@ type: docker name: default steps: + - name: generate + pull: if-not-exists + image: hkccr.ccs.tencentyun.com/xiaoqidun/build + commands: + - build -f build.sh -i ihash.go -o release/ihash - name: build pull: if-not-exists - image: golang:alpine + image: xiaoqidun/goenv commands: - - go build -mod=vendor ihash.go \ No newline at end of file + - ./build.sh + - name: upload + image: xiaoqidun/gocos + settings: + secret_id: + from_secret: cos_secret_id + secret_key: + from_secret: cos_secret_key + bucket_url: + from_secret: cos_bucket_url + source: release/ + target: product/ihash + strip_prefix: release/ \ No newline at end of file diff --git a/README.md b/README.md index 6379211..c26d3cd 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ cd ihash go build ihash.go ``` # 手动安装 -1. 根据系统架构下载为你编译好的[二进制文件](https://github.com/xiaoqidun/ihash/releases) +1. 根据系统架构下载为你编译好的[二进制文件](https://aite.xyz/product/ihash/) 2. 将下载好的二进制文件重命名为ihash并保留后缀 3. 把ihash文件移动到系统PATH环境变量中的目录下 4. windows外的系统需使用chmod命令赋予可执行权限