From 0bd4b7e36baa6199d428da4b6e6d09f83e2445d9 Mon Sep 17 00:00:00 2001 From: admin <15630053159@163.com> Date: Sun, 29 Nov 2026 15:20:36 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E5=A2=9E=E5=8A=A0=E9=83=A8=E7=BD=B2?= =?UTF-8?q?=E5=88=B0=20K8s=20=E7=9A=84=20stage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index a17e441..133ce8c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -42,5 +42,13 @@ pipeline { } } } + stage('部署到 K8s') { + steps { + container('kubectl') { + sh 'kubectl -n demo set image deploy/demo-app demo-app=$HARBOR/$PROJECT/$IMAGE_NAME:$IMAGE_TAG' + sh 'kubectl -n demo rollout status deploy/demo-app --timeout=120s' + } + } + } } } \ No newline at end of file