2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 07:57:21 +08:00

workflow: 更新ci文件

This commit is contained in:
耗子
2024-12-03 00:01:26 +08:00
parent 2ebe0ba47d
commit 128f44ca55
6 changed files with 30 additions and 19 deletions

View File

@@ -52,7 +52,7 @@ var (
BuildTime string
CommitHash string
GoVersion string
BuildID string
BuildUser string
BuildHost string
BuildID string
)

View File

@@ -6,6 +6,7 @@ import (
"net/http"
"regexp"
"strings"
"time"
"github.com/go-rat/chix"
"github.com/go-rat/utils/collect"
@@ -103,15 +104,17 @@ func (s *DashboardService) SystemInfo(w http.ResponseWriter, r *http.Request) {
})
}
time.Now().UTC()
Success(w, chix.M{
"procs": hostInfo.Procs,
"hostname": hostInfo.Hostname,
"panel_version": app.Version,
"commit_hash": app.CommitHash,
"build_id": app.BuildID,
"build_time": app.BuildTime,
"build_user": app.BuildUser,
"build_host": app.BuildHost,
"build_id": app.BuildID,
"go_version": app.GoVersion,
"kernel_arch": hostInfo.KernelArch,
"kernel_version": hostInfo.KernelVersion,