Compare commits
33 Commits
Author | SHA1 | Date | |
---|---|---|---|
05e9e77b6b | |||
ebef126a9e | |||
2304fe94ae | |||
8ceb47038d | |||
ea9fad130c | |||
4956f4e0cd | |||
42ce5fb67c | |||
b054cd476a | |||
dc4e1fd389 | |||
6d64016d57 | |||
1e06c04ddd | |||
37188fe760 | |||
dead1e5a40 | |||
9c6bf70008 | |||
194b2f0e0d | |||
34d7b8682d | |||
6f8f692852 | |||
c75999ea93 | |||
76b88ed75a | |||
a7b39f3ce1 | |||
8dc73bd098 | |||
523a9d9767 | |||
4aad193bb0 | |||
64f4251159 | |||
8810012a03 | |||
c74f27cbf3 | |||
a9c6dfeb0b | |||
d775dc7371 | |||
d3de840af1 | |||
6237b3a8f3 | |||
df8c022982 | |||
781877fca5 | |||
be198b6046 |
7
.dockerignore
Normal file
7
.dockerignore
Normal file
@ -0,0 +1,7 @@
|
||||
.vscode/
|
||||
.idea/
|
||||
node_modules/
|
||||
**/*.log
|
||||
LICENSE
|
||||
README.md
|
||||
README.en.md
|
41
.drone.yml
Normal file
41
.drone.yml
Normal file
@ -0,0 +1,41 @@
|
||||
---
|
||||
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
|
14
Dockerfile
Normal file
14
Dockerfile
Normal file
@ -0,0 +1,14 @@
|
||||
#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
|
||||
|
||||
FROM busybox
|
||||
LABEL maintainer thomas.hairong@gmail.com
|
||||
COPY dist/ /html
|
Loading…
Reference in New Issue
Block a user