ci: docker build disable cache

This commit is contained in:
CaptainB 2023-10-16 16:23:03 +08:00 committed by 刘瑞斌
parent 0cc274c2b8
commit dd4c4d1fd2
1 changed files with 1 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -81,7 +81,7 @@ pipeline {
when { environment name: 'BUILD_SDK', value: 'false' }
steps {
sh '''#!/bin/bash -xe
docker --config /home/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
docker --config /home/metersphere/.docker buildx build --no-cache --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
'''
}
}