From 278be61faf8f2bea5a8be0c260d8e5ce849dc79d Mon Sep 17 00:00:00 2001 From: newrain001 Date: Wed, 8 Nov 2023 16:16:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'cloud/Jenkinsfile'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cloud/Jenkinsfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cloud/Jenkinsfile b/cloud/Jenkinsfile index 6e20bb5..c6684ec 100644 --- a/cloud/Jenkinsfile +++ b/cloud/Jenkinsfile @@ -21,16 +21,16 @@ pipeline { } stage('构建镜像') { steps { - sh "docker build -t 192.168.96.141/library/ruoyi-nginx:${tag} cloud/ruoyi-nginx" + sh "docker build -t ${html_image_repo}:${tag} cloud/ruoyi-nginx" echo "构建镜像完成" - sh "docker build -t 192.168.96.141/library/ruoyi-java:${tag} cloud/ruoyi-java" + sh "docker build -t ${java_image_repo}:${tag} cloud/ruoyi-java" } } stage('推送镜像') { steps { sh ''' - docker push 192.168.96.141/library/ruoyi-nginx:${tag} - docker push 192.168.96.141/library/ruoyi-java:${tag} + docker push ${html_image_repo}:${tag} + docker push ${java_image_repo}:${tag} ''' echo "镜像推送完成" }