From ce721696fab2d10f441845e41efcf5308fd8603d Mon Sep 17 00:00:00 2001 From: thomas Date: Wed, 1 Mar 2023 14:06:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20:rocket:=20=E6=B7=BB=E5=8A=A0=E9=83=A8?= =?UTF-8?q?=E7=BD=B2master=E5=88=86=E6=94=AF=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 8 ++++---- Dockerfile | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 3dca087..97992e1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,16 +11,16 @@ steps: - name: dockerconfig path: /root/.docker 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 + - docker build -t harbor.picaiba.com/kszny/mes-api:1.0.0-cigs4 ./ && docker push harbor.picaiba.com/kszny/mes-api:1.0.0-cigs4 - 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 + - kubectl scale --replicas=0 deployment/mes-api -n mes-cigs4 - sleep 3 - - kubectl scale --replicas=1 deployment/mes-api -n mes-india + - kubectl scale --replicas=1 deployment/mes-api -n mes-cigs4 depends_on: - build @@ -34,6 +34,6 @@ volumes: trigger: branch: - - porject/yd-monitor + - master event: - push diff --git a/Dockerfile b/Dockerfile index b764535..db5986e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -49,7 +49,7 @@ ENV TZ="Asia/Shanghai" RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone # 定义一些环境变量,方便环境变量传参 ENV JVM_OPTS="" -ENV JAVA_OPTS="-Dspring.profiles.active=dev" +ENV JAVA_OPTS="" # 指定暴露的端口,起到说明的作用,不指定也会暴露对应端口 EXPOSE 8080 # 启动 jar 的命令 -- 2.45.2