From 5fadd533def7afc05ea7b8deb1212fff3806dc4f Mon Sep 17 00:00:00 2001 From: thomas Date: Wed, 23 Feb 2022 11:40:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20:bug:=20=E4=BF=AE=E6=AD=A3=E6=9E=84?= =?UTF-8?q?=E5=BB=BA=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 6 +++--- Dockerfile | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index f456860..c6937c7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,7 +12,7 @@ steps: - name: dockerconfig path: /root/.docker commands: - - docker build -t harbor.picaiba.com/mes/mes-cigs-ui ./ && docker push harbor.picaiba.com/mes/mes-cigs-ui + - docker build -t harbor.picaiba.com/kszny/wms-ui:00a-1.0.0 ./ && docker push harbor.picaiba.com/kszny/wms-ui:00a-1.0.0 - name: deploy image: harbor.picaiba.com/tools/kubectl:1.19.8 @@ -20,9 +20,9 @@ steps: - echo "172.27.0.20 lb.kubesphere.local" >> /etc/hosts #- echo "52.74.223.119 github.com" >> /etc/hosts - sleep 1 - - kubectl scale --replicas=0 deployment/mes-ui -n mes-cigs + - kubectl scale --replicas=0 deployment/a-wms-ui -n wms - sleep 3 - - kubectl scale --replicas=1 deployment/mes-ui -n mes-cigs + - kubectl scale --replicas=1 deployment/a-wms-ui -n wms depends_on: - build diff --git a/Dockerfile b/Dockerfile index d6f19f4..7600b86 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,7 @@ FROM node:12 AS builder WORKDIR /app ADD package.json /app/ -RUN npm install \ - --registry=https://registry.npm.taobao.org \ - --disturl=https://npm.taobao.org/dist +RUN npm config set registry https://registry.npmmirror.com && npm install ADD . /app RUN npm run build:prod -- 2.45.2