mirror of
https://github.com/xiaoqidun/ihash.git
synced 2024-11-22 01:56:46 +08:00
feat(自动构建): 自动构建
This commit is contained in:
parent
b076c947ba
commit
b7521e21b7
21
.drone.yml
21
.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
|
||||
- ./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/
|
@ -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命令赋予可执行权限
|
||||
|
Loading…
x
Reference in New Issue
Block a user