feat 阿里云观测平台
This commit is contained in:
4
deploy/Jenkinsfile
vendored
4
deploy/Jenkinsfile
vendored
@@ -19,6 +19,7 @@ pipeline {
|
|||||||
APP_NAME = 'service-gateway'
|
APP_NAME = 'service-gateway'
|
||||||
GO_MOD_CACHE_DIR = '/home/pi/Desktop/docker/jenkins/caches/go-mod'
|
GO_MOD_CACHE_DIR = '/home/pi/Desktop/docker/jenkins/caches/go-mod'
|
||||||
GO_BUILD_CACHE_DIR = '/home/pi/Desktop/docker/jenkins/caches/go-build'
|
GO_BUILD_CACHE_DIR = '/home/pi/Desktop/docker/jenkins/caches/go-build'
|
||||||
|
INSTGO_CACHE_DIR = '/home/pi/Desktop/docker/jenkins/caches/instgo'
|
||||||
}
|
}
|
||||||
|
|
||||||
options {
|
options {
|
||||||
@@ -53,7 +54,7 @@ pipeline {
|
|||||||
docker {
|
docker {
|
||||||
image 'golang:1.24.0-alpine'
|
image 'golang:1.24.0-alpine'
|
||||||
reuseNode true
|
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 {
|
steps {
|
||||||
@@ -62,6 +63,7 @@ pipeline {
|
|||||||
export CGO_ENABLED=0
|
export CGO_ENABLED=0
|
||||||
export GOOS=linux
|
export GOOS=linux
|
||||||
export GOARCH=amd64
|
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
|
wget "http://arms-apm-cn-chengdu.oss-cn-chengdu.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo
|
||||||
chmod +x instgo
|
chmod +x instgo
|
||||||
|
|||||||
Reference in New Issue
Block a user