Compare commits
No commits in common. "781877fca5b19f4532e49a42bb7c2d2af5fa4334" and "a85c385180a07bfc0515c0853c7120e46fb536f6" have entirely different histories.
781877fca5
...
a85c385180
@ -1,8 +0,0 @@
|
|||||||
.vscode/
|
|
||||||
.idea/
|
|
||||||
node_modules/
|
|
||||||
dist/
|
|
||||||
**/*.log
|
|
||||||
LICENSE
|
|
||||||
README.md
|
|
||||||
README.en.md
|
|
41
.drone.yml
41
.drone.yml
@ -1,41 +0,0 @@
|
|||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: default
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: build
|
|
||||||
image: docker:dind
|
|
||||||
volumes:
|
|
||||||
- name: dockersock
|
|
||||||
path: /var/run/docker.sock
|
|
||||||
- name: dockerconfig
|
|
||||||
path: /root/.docker
|
|
||||||
commands:
|
|
||||||
- docker build -t harbor.picaiba.com/kszny/mes-ui:1.0.0-tft ./ && docker push harbor.picaiba.com/kszny/mes-ui:1.0.0-tft
|
|
||||||
|
|
||||||
- name: deploy
|
|
||||||
image: harbor.picaiba.com/tools/kubectl:1.19.8
|
|
||||||
commands:
|
|
||||||
- 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-tft
|
|
||||||
- sleep 3
|
|
||||||
- kubectl scale --replicas=1 deployment/mes-ui -n mes-tft
|
|
||||||
depends_on:
|
|
||||||
- build
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: dockersock
|
|
||||||
host:
|
|
||||||
path: /var/run/docker.sock
|
|
||||||
- name: dockerconfig
|
|
||||||
host:
|
|
||||||
path: /root/.docker
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
branch:
|
|
||||||
- master
|
|
||||||
event:
|
|
||||||
- push
|
|
10
Dockerfile
10
Dockerfile
@ -1,10 +0,0 @@
|
|||||||
FROM node:12 AS builder
|
|
||||||
WORKDIR /app
|
|
||||||
ADD package.json /app/
|
|
||||||
RUN npm config set registry https://registry.npmmirror.com && npm install
|
|
||||||
ADD . /app
|
|
||||||
RUN npm run build
|
|
||||||
|
|
||||||
FROM busybox
|
|
||||||
LABEL maintainer thomas.hairong@gmail.com
|
|
||||||
COPY --from=builder /app/dist /html
|
|
Loading…
Reference in New Issue
Block a user