From 23be65bcb78c3ed2a27b4b3683e97c43c3a7f53f Mon Sep 17 00:00:00 2001 From: CaptainB Date: Fri, 22 Apr 2022 16:48:39 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E4=BD=BF=E7=94=A8metersphere=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E6=89=A7=E8=A1=8Cdocker=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index ef2fa6e75a..da4d5abb46 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,7 +26,10 @@ pipeline { } stage('Docker build & push') { steps { - sh "docker buildx build --build-arg MS_VERSION=\${TAG_NAME:-\$BRANCH_NAME}-\${GIT_COMMIT:0:8} -t ${IMAGE_PREFIX}/${IMAGE_NAME}:\${TAG_NAME:-\$BRANCH_NAME} --platform linux/amd64,linux/arm64 . --push" + sh ''' + su - metersphere + docker buildx build --build-arg MS_VERSION=\${TAG_NAME:-\$BRANCH_NAME}-\${GIT_COMMIT:0:8} -t ${IMAGE_PREFIX}/${IMAGE_NAME}:\${TAG_NAME:-\$BRANCH_NAME} --platform linux/amd64,linux/arm64 . --push + ''' } } }