From 11092165b5d6d09c561c0c3a79b4b46b5e8a527e Mon Sep 17 00:00:00 2001 From: XuqmGroup Date: Thu, 14 May 2026 15:29:19 +0800 Subject: [PATCH] fix: add --platform=linux/amd64 to Jenkinsfile for cross-platform build --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index de9e66d..f70b4cb 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -31,7 +31,7 @@ pipeline { bat """ docker login ${ACR_REGISTRY} -u ${ACR_USERNAME} -p %ACR_PASS% docker pull ${imageName} || exit 0 - docker build --build-arg SERVICE_MODULE=${params.SERVICE} --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from ${imageName} -t ${imageName} . + docker build --platform=linux/amd64 --build-arg SERVICE_MODULE=${params.SERVICE} --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from ${imageName} -t ${imageName} . docker push ${imageName} docker rmi ${imageName} || exit 0 """