Skip to content

Commit e3b1de7

Browse files
committed
add sothothv1_agent submodule and build workflow
1 parent 6431b72 commit e3b1de7

3 files changed

Lines changed: 65 additions & 0 deletions

File tree

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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 }}

‎.gitmodules‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
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

‎build/sothothv1_agent‎

Submodule sothothv1_agent added at 17745b1

0 commit comments

Comments
 (0)