docs: 新增部署脚本
This commit is contained in:
parent
3d1ff73228
commit
86c1466229
73
.drone.yml
Normal file
73
.drone.yml
Normal file
@ -0,0 +1,73 @@
|
|||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: Build and Deploy
|
||||||
|
|
||||||
|
clone:
|
||||||
|
depth: 10
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: go_cache
|
||||||
|
host:
|
||||||
|
path: /data/drone_cache/go_cache
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: restore-cache
|
||||||
|
image: drillster/drone-volume-cache
|
||||||
|
volumes:
|
||||||
|
- name: go_cache
|
||||||
|
path: /cache
|
||||||
|
settings:
|
||||||
|
restore: true
|
||||||
|
mount:
|
||||||
|
- ./.npm-cache
|
||||||
|
- ./node_modules
|
||||||
|
|
||||||
|
- name: build
|
||||||
|
image: node:alpine
|
||||||
|
pull: if-not-exists
|
||||||
|
commands:
|
||||||
|
- export NODE_OPTIONS=--max_old_space_size=6144
|
||||||
|
- echo ${DRONE_BRANCH}
|
||||||
|
- echo ${DRONE_TAG}
|
||||||
|
- echo ${DRONE_COMMIT}
|
||||||
|
- echo ${DRONE_COMMIT:0-7}
|
||||||
|
- npm config set registry https://registry.npmmirror.com
|
||||||
|
- npm install -g pnpm
|
||||||
|
- pnpm config set registry https://registry.npmmirror.com
|
||||||
|
- pnpm i
|
||||||
|
- pnpm build
|
||||||
|
|
||||||
|
- name: rebuild-cache
|
||||||
|
image: drillster/drone-volume-cache
|
||||||
|
volumes:
|
||||||
|
- name: go_cache
|
||||||
|
path: /cache
|
||||||
|
settings:
|
||||||
|
rebuild: true
|
||||||
|
mount:
|
||||||
|
- ./.npm-cache
|
||||||
|
- ./node_modules
|
||||||
|
|
||||||
|
- name: scp files
|
||||||
|
image: appleboy/drone-scp
|
||||||
|
pull: if-not-exists
|
||||||
|
settings:
|
||||||
|
host:
|
||||||
|
from_secret: HOST
|
||||||
|
username:
|
||||||
|
from_secret: USERNAME
|
||||||
|
password:
|
||||||
|
from_secret: PASSWORD
|
||||||
|
port:
|
||||||
|
from_secret: PORT
|
||||||
|
target:
|
||||||
|
from_secret: TARGET_PATH
|
||||||
|
source: dist/*
|
||||||
|
overwrite: true
|
||||||
|
rm: true
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
event:
|
||||||
|
- push
|
@ -7,7 +7,8 @@
|
|||||||
<div align="center">
|
<div align="center">
|
||||||
<p>一个基于 <a href="https://gitee.com/dromara/RuoYi-Vue-Plus" target="_blank">RuoYi-Vue-Plus</a> 的后端能力和 <a href="https://github.com/soybeanjs/soybean-admin" target="_blank">Soybean Admin</a> 前端特性的现代化多租户管理系统</p>
|
<p>一个基于 <a href="https://gitee.com/dromara/RuoYi-Vue-Plus" target="_blank">RuoYi-Vue-Plus</a> 的后端能力和 <a href="https://github.com/soybeanjs/soybean-admin" target="_blank">Soybean Admin</a> 前端特性的现代化多租户管理系统</p>
|
||||||
<p>
|
<p>
|
||||||
<img src="https://gitee.com/xlsea/ruoyi-plus-soybean/badge/star.svg?theme=blue" alt="Gitee">
|
<img src="https://gitee.com/xlsea/ruoyi-plus-soybean/badge/star.svg" alt="Gitee">
|
||||||
|
<img src="https://img.shields.io/github/stars/m-xlsea/ruoyi-plus-soybean" alt="Github">
|
||||||
<img src="https://img.shields.io/badge/Vue-3.5-brightgreen" alt="vue">
|
<img src="https://img.shields.io/badge/Vue-3.5-brightgreen" alt="vue">
|
||||||
<img src="https://img.shields.io/badge/TypeScript-5.8-blue" alt="typescript">
|
<img src="https://img.shields.io/badge/TypeScript-5.8-blue" alt="typescript">
|
||||||
<img src="https://img.shields.io/badge/Vite-6.2-orange" alt="vite">
|
<img src="https://img.shields.io/badge/Vite-6.2-orange" alt="vite">
|
||||||
|
Loading…
Reference in New Issue
Block a user