From 152a5bde2d3c3e656a32ba719260cfc7014d3ec5 Mon Sep 17 00:00:00 2001 From: "DESKTOP-V763RJ7\\Administrator" <835606593@qq.com> Date: Sat, 24 Jan 2026 17:06:34 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E9=98=BF=E9=87=8C=E4=BA=91=E8=A7=82?= =?UTF-8?q?=E6=B5=8B=E5=B9=B3=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deploy/Jenkinsfile b/deploy/Jenkinsfile index 7336b13..365f0a8 100644 --- a/deploy/Jenkinsfile +++ b/deploy/Jenkinsfile @@ -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