ci: 使用metersphere用户执行docker命令

This commit is contained in:
CaptainB 2022-04-22 18:11:35 +08:00 committed by 刘瑞斌
parent 23be65bcb7
commit 48d3b05d20
1 changed files with 1 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -28,7 +28,7 @@ pipeline {
steps { steps {
sh ''' sh '''
su - metersphere 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 sudo 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
''' '''
} }
} }