张 巡 1 year ago
parent
commit
7e2e28dcc8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      deploy/Jenkinsfile

+ 1 - 1
deploy/Jenkinsfile

@@ -16,7 +16,7 @@ pipeline {
         container('docker') {
           echo "构建 Docker 镜像阶段"
           sh 'echo "nameserver 114.114.114.114" >> /etc/resolv.conf'
-          sh 'docker build --target image-idcprod -t ${IMAGE_REPO}/datax-admin:${ENV_APP} --output type=docker .'
+          sh 'docker build --target ${ENV_TARGET} -t ${IMAGE_REPO}/datax-admin:${ENV_APP} --output type=docker .'
           echo "build success"
         }
         script {