mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-10-29 15:30:03 +08:00
udpate
This commit is contained in:
parent
049a536ebf
commit
3904e4da45
@ -10,7 +10,7 @@ pipeline {
|
|||||||
DEPLOYMENT_NAME = "api" // k8s deploy name
|
DEPLOYMENT_NAME = "api" // k8s deploy name
|
||||||
CONFIGMAP_NAME = "${DEPLOYMENT_NAME}-conf" // runtime conf
|
CONFIGMAP_NAME = "${DEPLOYMENT_NAME}-conf" // runtime conf
|
||||||
JOB_NAME = "${JOB_NAME}" // jenkins job name
|
JOB_NAME = "${JOB_NAME}" // jenkins job name
|
||||||
GIT_URL = "https://github.com/truongpx396/k8s-jenkins" // gitlab or github codebase
|
GIT_URL = "https://github.com/truongpx396/Open-IM-Server" // gitlab or github codebase
|
||||||
CREDENTIALS_ID = "GitHub" // need configure it in jenkins, will use it's username and password to pull codebase
|
CREDENTIALS_ID = "GitHub" // need configure it in jenkins, will use it's username and password to pull codebase
|
||||||
HARBOR_URL = "truongpx396" // docker harbor url
|
HARBOR_URL = "truongpx396" // docker harbor url
|
||||||
HARBOR_ID = "" // docker harbor id, will use it to login
|
HARBOR_ID = "" // docker harbor id, will use it to login
|
||||||
@ -100,7 +100,7 @@ pipeline {
|
|||||||
withDockerRegistry([ credentialsId: "DockerHub", url: "" ]){
|
withDockerRegistry([ credentialsId: "DockerHub", url: "" ]){
|
||||||
sh """
|
sh """
|
||||||
echo `Build image ...`
|
echo `Build image ...`
|
||||||
docker build -t ${JOB_ENV}/${JOB_NAME}:${CommitHash}-${BUILD_NUM} -f ${BASEDIR}/dockerfile/${params.RELEASE_PROJECTS}.Dockerfile .
|
docker build -t ${JOB_ENV}/${JOB_NAME}:${CommitHash}-${BUILD_NUM} -f ${BASEDIR}/jenkins-deploy/dockerfile/${params.RELEASE_PROJECTS}.Dockerfile .
|
||||||
docker tag ${JOB_ENV}/${JOB_NAME}:${CommitHash}-${BUILD_NUM} ${HARBOR_URL}/${JOB_ENV}/${JOB_NAME}:${CommitHash}-${BUILD_NUM}
|
docker tag ${JOB_ENV}/${JOB_NAME}:${CommitHash}-${BUILD_NUM} ${HARBOR_URL}/${JOB_ENV}/${JOB_NAME}:${CommitHash}-${BUILD_NUM}
|
||||||
|
|
||||||
echo `Push image ...`
|
echo `Push image ...`
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user