feat(构建迁移): 构建迁移

This commit is contained in:
2025-11-27 14:22:03 +08:00
parent 04137a554f
commit 41b2bfb936
3 changed files with 29 additions and 30 deletions

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: ccr.ccs.tencentyun.com/xiaoqidun/build
with:
args: build -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: docker://ccr.ccs.tencentyun.com/xiaoqidun/gocos
env:
PLUGIN_SECRET_ID: ${{secrets.cos_secret_id}}
PLUGIN_SECRET_KEY: ${{secrets.cos_secret_key}}
PLUGIN_BUCKET_URL: ${{secrets.cos_bucket_url}}
PLUGIN_SOURCE: release/
PLUGIN_TARGET: product/ihash
PLUGIN_STRIP_PREFIX: release/