5 Commits

Author SHA1 Message Date
40599fee4e feat(构建脚本): 更新构建脚本
All checks were successful
/ build (push) Successful in 2m38s
2025-12-02 14:04:24 +08:00
da63656206 feat(构建脚本): 添加latest 2025-11-29 19:36:20 +08:00
64f1667f76 fix(修复构建): 修复构建 2025-11-27 15:54:20 +08:00
9a4089a05c feat(构建脚本): 修正构建脚本 2025-11-27 15:23:52 +08:00
41b2bfb936 feat(构建迁移): 构建迁移 2025-11-27 14:22:03 +08:00
3 changed files with 29 additions and 30 deletions

View File

@@ -1,29 +0,0 @@
kind: pipeline
type: docker
name: default
node:
region: cn
steps:
- name: generate
pull: if-not-exists
image: ccr.ccs.tencentyun.com/xiaoqidun/build
commands:
- build -f build.sh -i ihash.go -o release/ihash
- name: build
pull: if-not-exists
image: ccr.ccs.tencentyun.com/xiaoqidun/goenv
commands:
- ./build.sh
- name: upload
pull: if-not-exists
image: ccr.ccs.tencentyun.com/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/

View File

@@ -0,0 +1,28 @@
on: [push, workflow_dispatch]
jobs:
build:
runs-on: cn
steps:
- name: checkout
uses: actions/checkout@v6
- name: generate
uses: docker://ccr.ccs.tencentyun.com/xiaoqidun/build:latest
with:
args: -f build.sh -i ihash.go -o release/ihash
- name: docker goenv
uses: docker://ccr.ccs.tencentyun.com/xiaoqidun/goenv:latest
env:
GIT_SERVER: ${{ secrets.git_server }}
GIT_USER: ${{ secrets.git_user }}
GIT_TOKEN: ${{ secrets.git_token }}
with:
args: bash build.sh
- name: upload to cos
uses: xiaoqidun/gocos@main
with:
secret_id: ${{ secrets.cos_secret_id }}
secret_key: ${{ secrets.cos_secret_key }}
bucket_url: ${{ secrets.cos_bucket_url }}
source_path: release
target_path: product/ihash
strip_prefix: release

2
go.mod
View File

@@ -1,3 +1,3 @@
module github.com/xiaoqidun/ihash module github.com/xiaoqidun/ihash
go 1.24.2 go 1.25.4