Compare commits

..

No commits in common. "aa15b551fb0c8845e2139d1241fcfce1c7ff4984" and "f2c038d543d1654ad18bce53691c7d996719c513" have entirely different histories.

2 changed files with 6 additions and 4 deletions

View File

@ -12,7 +12,7 @@ steps:
- name: dockerconfig
path: /root/.docker
commands:
- 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
- docker build -t harbor.picaiba.com/mes/mes-cigs-ui ./ && docker push harbor.picaiba.com/mes/mes-cigs-ui
- 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/a-wms-ui -n wms
- kubectl scale --replicas=0 deployment/mes-ui -n mes-cigs
- sleep 3
- kubectl scale --replicas=1 deployment/a-wms-ui -n wms
- kubectl scale --replicas=1 deployment/mes-ui -n mes-cigs
depends_on:
- build

View File

@ -1,7 +1,9 @@
FROM node:12 AS builder
WORKDIR /app
ADD package.json /app/
RUN npm config set registry https://registry.npmmirror.com && npm install
RUN npm install \
--registry=https://registry.npm.taobao.org \
--disturl=https://npm.taobao.org/dist
ADD . /app
RUN npm run build:prod