File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : build_sothothv1_agent
2+ on :
3+ push :
4+ branches :
5+ - ' **'
6+ paths :
7+ - .github/workflows/build_sothothv1_agent.yml
8+ - build/sothothv1_agent/*
9+ - build/common/*
10+ - Dockerfile
11+ env :
12+ TZ : Asia/Shanghai
13+
14+ jobs :
15+ build :
16+ runs-on : ubuntu-latest
17+ strategy :
18+ matrix :
19+ build_arch : [linux/amd64]
20+ include :
21+ - build_name : x86_64
22+ build_arch : linux/amd64
23+ steps :
24+ - name : Checkout
25+ uses : actions/checkout@v4
26+
27+ - name : Set up QEMU
28+ uses : docker/setup-qemu-action@v3
29+
30+ - name : Set up Docker Buildx
31+ uses : docker/setup-buildx-action@v3
32+
33+ - name : Build binary
34+ uses : docker/build-push-action@v5
35+ with :
36+ context : build/sothothv1_agent/
37+ platforms : ${{ matrix.build_arch }}
38+ push : false
39+ tags : local_sothothv1_agent:latest
40+ file : Dockerfile
41+ outputs : |
42+ type=local,dest=${{ github.workspace }}/output
43+
44+ - name : List Dir
45+ run : ls -lRt ${{ github.workspace }}
46+
47+ - name : Upload binary to artifacts
48+ uses : actions/upload-artifact@v4
49+ with :
50+ name : sothothv1_agent-linux-${{ matrix.name }}
51+ path : ${{ github.workspace }}/output/build/install/*
52+
53+ - name : Create Release
54+ uses : ncipollo/release-action@v1
55+ with :
56+ tag : v1.0
57+ name : " Release v1.0"
58+ artifacts : " ${{ github.workspace }}/output/build/install/*"
59+ artifactErrorsFailBuild : false
60+ allowUpdates : true # 允许更新已存在的release
61+ token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 11[submodule "build/nacos_client/frontend "]
22 path = build/nacos_client/frontend
33 url = https://github.com/runshine/nacos_client_frontend.git
4+ [submodule "build/sothothv1_agent "]
5+ path = build/sothothv1_agent
6+ url = git@github.com:UltramanGaia/gaiasec-nodeagent.git
You can’t perform that action at this time.
0 commit comments