mirror of
https://github.com/xiaoqidun/probe.git
synced 2026-01-29 04:58:46 +08:00
feat(编译脚本): 添加自动构建脚本
This commit is contained in:
@@ -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 . -o release/probe
|
||||
- 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/probe
|
||||
strip_prefix: release
|
||||
Vendored
+1
@@ -1,5 +1,6 @@
|
||||
.idea/
|
||||
.vscode/
|
||||
.devcontainer/
|
||||
release/
|
||||
*.exe
|
||||
*~
|
||||
Reference in New Issue
Block a user