feat 阿里云观测平台

This commit is contained in:
2026-01-24 17:06:34 +08:00
parent eb47b44ab0
commit 152a5bde2d

4
deploy/Jenkinsfile vendored
View File

@@ -19,6 +19,7 @@ pipeline {
APP_NAME = 'service-gateway'
GO_MOD_CACHE_DIR = '/home/pi/Desktop/docker/jenkins/caches/go-mod'
GO_BUILD_CACHE_DIR = '/home/pi/Desktop/docker/jenkins/caches/go-build'
INSTGO_CACHE_DIR = '/home/pi/Desktop/docker/jenkins/caches/instgo'
}
options {
@@ -53,7 +54,7 @@ pipeline {
docker {
image 'golang:1.24.0-alpine'
reuseNode true
args '-u root:root -v $GO_MOD_CACHE_DIR:/go/pkg/mod -v $GO_BUILD_CACHE_DIR:/root/.cache/go-build'
args '-u root:root -v $GO_MOD_CACHE_DIR:/go/pkg/mod -v $GO_BUILD_CACHE_DIR:/root/.cache/go-build -v $INSTGO_CACHE_DIR:/root/instgo-caches'
}
}
steps {
@@ -62,6 +63,7 @@ pipeline {
export CGO_ENABLED=0
export GOOS=linux
export GOARCH=amd64
export INSTGO_CACHE_DIR=/root/instgo-caches
wget "http://arms-apm-cn-chengdu.oss-cn-chengdu.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo
chmod +x instgo