From 711a4f839b592af5b11b4d24f6012430de55f025 Mon Sep 17 00:00:00 2001 From: thomas Date: Thu, 15 Sep 2022 10:48:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3.dorne.yml=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.drone.yml b/.drone.yml index bb43ac4..3dca087 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,16 +13,16 @@ steps: commands: - docker build -t harbor.picaiba.com/kszny/mes-api:1.0.0-india ./ && docker push harbor.picaiba.com/kszny/mes-api:1.0.0-india - - name: deploy - image: harbor.picaiba.com/tools/kubectl - commands: - - echo "172.27.0.20 lb.kubesphere.local" >> /etc/hosts - - sleep 1 - - kubectl scale --replicas=0 deployment/mes-api -n mes-india - - sleep 3 - - kubectl scale --replicas=1 deployment/mes-api -n mes-india - depends_on: - - build +- name: deploy + image: harbor.picaiba.com/tools/kubectl + commands: + - echo "172.27.0.20 lb.kubesphere.local" >> /etc/hosts + - sleep 1 + - kubectl scale --replicas=0 deployment/mes-api -n mes-india + - sleep 3 + - kubectl scale --replicas=1 deployment/mes-api -n mes-india + depends_on: + - build volumes: - name: dockersock