Merge branch 'dev' into test
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
11
.drone.yml
11
.drone.yml
@@ -8,6 +8,7 @@ platform:
|
||||
|
||||
steps:
|
||||
- name: 测试服-依赖安装&&编译打包
|
||||
pull: if-not-exists
|
||||
image: node:20-alpine
|
||||
when:
|
||||
branch:
|
||||
@@ -22,6 +23,7 @@ steps:
|
||||
- tar -zcvf dist.tar ./dist ./default.conf ./Dockerfile
|
||||
|
||||
- name: 正式服-依赖安装&&编译打包
|
||||
pull: if-not-exists
|
||||
image: node:20-alpine
|
||||
when:
|
||||
branch:
|
||||
@@ -36,6 +38,7 @@ steps:
|
||||
- tar -zcvf dist.tar ./dist ./default.conf ./Dockerfile
|
||||
|
||||
- name: 测试服-产物上传
|
||||
pull: if-not-exists
|
||||
image: appleboy/drone-scp
|
||||
when:
|
||||
branch:
|
||||
@@ -54,6 +57,7 @@ steps:
|
||||
- ./dist.tar
|
||||
|
||||
- name: 测试服-部署
|
||||
pull: if-not-exists
|
||||
image: appleboy/drone-ssh
|
||||
when:
|
||||
branch:
|
||||
@@ -81,11 +85,12 @@ steps:
|
||||
- else
|
||||
- echo "容器不存在"
|
||||
- fi
|
||||
- docker run -d -p 8082:80 --restart=always --name jdt-admin-dev jdt-admin-dev
|
||||
- docker run -d -p 8085:80 --restart=always --name jdt-admin-dev jdt-admin-dev
|
||||
- cd ..
|
||||
- rm -rf jdt-admin-dev
|
||||
|
||||
- name: 正式服-产物上传
|
||||
pull: if-not-exists
|
||||
image: appleboy/drone-scp
|
||||
when:
|
||||
branch:
|
||||
@@ -104,6 +109,7 @@ steps:
|
||||
- ./dist.tar
|
||||
|
||||
- name: 正式服-部署
|
||||
pull: if-not-exists
|
||||
image: appleboy/drone-ssh
|
||||
when:
|
||||
branch:
|
||||
@@ -135,7 +141,8 @@ steps:
|
||||
- cd ..
|
||||
- rm -rf jdt-admin-prod
|
||||
|
||||
- name: 微信通知
|
||||
- name: 企业微信通知
|
||||
pull: if-not-exists
|
||||
image: plugins/webhook
|
||||
when:
|
||||
status:
|
||||
|
||||
Reference in New Issue
Block a user