ci: 调整镜像上传地址

This commit is contained in:
CaptainB 2024-05-07 10:19:39 +08:00 committed by 刘瑞斌
parent 8980be4af5
commit 18b15b4976
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
FROM registry.cn-qingdao.aliyuncs.com/metersphere/alpine-openjdk21-jre FROM registry.fit2cloud.com/metersphere/alpine-openjdk21-jre
LABEL maintainer="FIT2CLOUD <support@fit2cloud.com>" LABEL maintainer="FIT2CLOUD <support@fit2cloud.com>"

6
Jenkinsfile vendored
View File

@ -10,7 +10,7 @@ pipeline {
pollSCM('50 * * * *') pollSCM('50 * * * *')
} }
environment { environment {
IMAGE_PREFIX = 'registry.cn-qingdao.aliyuncs.com/metersphere' IMAGE_PREFIX = 'registry.fit2cloud.com/metersphere'
IMAGE_NAME = 'metersphere' IMAGE_NAME = 'metersphere'
JAVA_HOME = '/opt/jdk-21' JAVA_HOME = '/opt/jdk-21'
} }
@ -90,7 +90,7 @@ pipeline {
cp -rf $LOCAL_REPOSITORY/io/metersphere/$library/${REVISION}/$library-${REVISION}.jar backend/app/target/dependency/BOOT-INF/lib/ cp -rf $LOCAL_REPOSITORY/io/metersphere/$library/${REVISION}/$library-${REVISION}.jar backend/app/target/dependency/BOOT-INF/lib/
done done
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}-community -t metersphere/${IMAGE_NAME}:\${TAG_NAME:-\$BRANCH_NAME}-community --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}-community --platform linux/amd64,linux/arm64 . --push
''' '''
} }
} }
@ -117,7 +117,7 @@ pipeline {
cp -rf $LOCAL_REPOSITORY/io/metersphere/$library/${REVISION}/target/lib/* backend/app/target/dependency/BOOT-INF/lib/ cp -rf $LOCAL_REPOSITORY/io/metersphere/$library/${REVISION}/target/lib/* backend/app/target/dependency/BOOT-INF/lib/
done done
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}-enterprise -t metersphere/${IMAGE_NAME}:\${TAG_NAME:-\$BRANCH_NAME}-enterprise --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}-enterprise --platform linux/amd64,linux/arm64 . --push
''' '''
} }
} }