diff --git a/pipeline-dev b/pipeline-dev index 12c4441..7218e1d 100644 --- a/pipeline-dev +++ b/pipeline-dev @@ -16,6 +16,7 @@ pipeline { K8S_NAMESPACE = "azizi" K8S_DEPLOYMENT = "console-page" K8S_APP_LABEL = "console-page" + DOCKER_FILE = "Dockerfile-dev" } stages { @@ -39,7 +40,7 @@ pipeline { )]) { sh 'echo $ALIYUN_PASS | docker login --username $ALIYUN_USER --password-stdin registry.cn-hangzhou.aliyuncs.com' } - sh "docker build -t ${IMAGE_REP_TAG} ." + sh "docker build -f ${DOCKER_FILE} -t ${IMAGE_REP_TAG} ." } } stage('Upload image') {