ci: push to dockerhub

This commit is contained in:
CaptainB 2023-11-02 18:49:37 +08:00 committed by 刘瑞斌
parent 7c2c196a2f
commit 5fa267720f
1 changed files with 2 additions and 0 deletions

2
Jenkinsfile vendored
View File

@ -82,6 +82,8 @@ pipeline {
steps { steps {
sh '''#!/bin/bash -xe sh '''#!/bin/bash -xe
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 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
# 同步提交到 dockerhub
docker --config /home/metersphere/.docker buildx build --no-cache --build-arg MS_VERSION=\${TAG_NAME:-\$BRANCH_NAME}-\${GIT_COMMIT:0:8} -t metersphere/${IMAGE_NAME}:\${TAG_NAME:-\$BRANCH_NAME} --platform linux/amd64,linux/arm64 . --push
''' '''
} }
} }