张 巡 1 anno fa
parent
commit
c57b8bbf18
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      deploy/Jenkinsfile

+ 2 - 0
deploy/Jenkinsfile

@@ -17,6 +17,7 @@ pipeline {
           echo "构建 Docker 镜像阶段"
           sh 'echo "nameserver 114.114.114.114" >> /etc/resolv.conf'
           sh 'docker build --target image-idcprod -t ${IMAGE_REPO}/aihub-backend:sxtest --output type=docker .'
+          sh 'docker build --target image-idctest  -t ${IMAGE_REPO}/aihub-backend:${ENV_APP} --output type=docker .'
           echo "build success"
         }
         script {
@@ -30,6 +31,7 @@ pipeline {
           echo "Push Docker 镜像阶段"
           sh'docker images'
           sh 'docker push ${IMAGE_REPO}/aihub-backend:sxtest '
+          sh 'docker push ${IMAGE_REPO}/aihub-backend:${ENV_APP} '
           echo "Push image success"
         }
         script {