xgj 3 дней назад
Родитель
Сommit
becf64faa1
2 измененных файлов с 103 добавлено и 81 удалено
  1. 103 0
      .drone.yml
  2. 0 81
      README.md

+ 103 - 0
.drone.yml

@@ -0,0 +1,103 @@
+---
+kind: pipeline
+name: archives
+concurrency:
+  limit: 1
+steps:
+  - name: restore-cache
+    image: docker.1ms.run/drillster/drone-volume-cache
+    settings:
+      restore: true
+      cache_key: [DRONE_REPO_OWNER, DRONE_REPO_NAME]
+      mount:
+        - ./node_modules
+    volumes:
+      - name: cache
+        path: /cache
+
+  - name: build-dev
+    image: docker.1ms.run/node:16.14.2
+    commands:
+      - node --version
+      - npm install pnpm@8.15.4 -g --registry https://registry.npmmirror.com/
+      - pnpm --version
+      - pnpm install --no-frozen-lockfile --registry https://registry.npmmirror.com/
+      - git diff --name-only HEAD^ HEAD | grep package-lock.json && pnpm install --no-frozen-lockfile
+      - "[ -d node_modules ] && echo 'deps install done' || pnpm install --no-frozen-lockfile"
+      - pnpm run build:dev
+    when:
+      branch:
+        - dev
+  - name: build-prod
+    image: docker.1ms.run/node:16.14.2
+    commands:
+      - node --version
+      - npm install pnpm@8.15.4 -g --registry https://registry.npmmirror.com/
+      - pnpm --version
+      - pnpm install --no-frozen-lockfile --registry https://registry.npmmirror.com/
+      - git diff --name-only HEAD^ HEAD | grep package-lock.json && pnpm install  --registry https://registry.npmmirror.com/ --no-frozen-lockfile
+      - "[ -d node_modules ] && echo 'deps install done' || pnpm install --registry https://registry.npmmirror.com/ --no-frozen-lockfile"
+      - pnpm run build
+    when:
+      branch:
+        - master
+  - name: build-cqmz
+    image: docker.1ms.run/node:16.14.2
+    commands:
+      - node --version
+      - npm install pnpm@8.15.4 -g --registry https://registry.npmmirror.com/
+      - pnpm --version
+      - pnpm install --no-frozen-lockfile --registry https://registry.npmmirror.com/
+      - git diff --name-only HEAD^ HEAD | grep package-lock.json && pnpm install  --registry https://registry.npmmirror.com/ --no-frozen-lockfile
+      - "[ -d node_modules ] && echo 'deps install done' || pnpm install --registry https://registry.npmmirror.com/ --no-frozen-lockfile"
+      - pnpm run build:cqmz
+  - name: rebuild-cache
+    image: docker.1ms.run/drillster/drone-volume-cache
+    settings:
+      rebuild: true
+      cache_key: [DRONE_REPO_OWNER, DRONE_REPO_NAME]
+      mount:
+        - ./node_modules
+    volumes:
+      - name: cache
+        path: /cache
+
+  - name: deploy-dev
+    image: docker.1ms.run/drillster/drone-rsync
+    settings:
+      user: root
+      port: 22
+      hosts: [api.mdfitnesscao.com]
+      source: ./dist/*
+      target: /docker/www/platform_agency
+      include: []
+      exclude: []
+      key:
+        from_secret: ssh_key
+    when:
+      branch:
+        - dev
+  - name: deploy-prod
+    image: docker.1ms.run/drillster/drone-rsync
+    settings:
+      user: root
+      port: 22
+      hosts: [api.hhmdtech.com]
+      source: ./dist/*
+      target: /docker/www/platform_agency
+      include: []
+      exclude: []
+      key:
+        from_secret: ssh_key
+    when:
+      branch:
+        - master
+volumes:
+  - name: cache
+    host:
+      path: /tmp
+
+trigger:
+  branch:
+    - dev
+    - master

+ 0 - 81
README.md

@@ -1,30 +1,3 @@
-# Geeker-Admin
-
-### 介绍 📖
-
-Geeker-Admin 一款基于 Vue3.4、TypeScript、Vite5、Pinia、Element-Plus 开源的后台管理框架,使用目前最新技术栈开发。项目提供强大的 [ProTable](https://juejin.cn/post/7166068828202336263) 组件,在一定程度上提高您的开发效率。另外本项目还封装了一些常用组件、Hooks、指令、动态路由、按钮级别权限控制等功能。
-
-### React 版本 🔥
-
-- 有需要请加底部微信了解、购买
-
-- Link:https://pro.spicyboy.cn
-
-### 在线预览 👀
-
-- Link:https://admin.spicyboy.cn
-
-### 代码仓库 ⭐
-
-- Gitee:https://gitee.com/HalseySpicy/Geeker-Admin
-- GitHub:https://github.com/HalseySpicy/Geeker-Admin
-
-### 项目文档 📚
-
-- 项目更新日志:[CHANGELOG.md](./CHANGELOG.md)
-
-- 项目文档地址:https://docs.spicyboy.cn
-
 ### 项目功能 🔨
 
 - 使用 Vue3.4 + TypeScript 开发,单文件组件**<script setup>**
@@ -96,34 +69,6 @@ pnpm lint:stylelint
 pnpm commit
 ```
 
-### 项目截图 📷
-
-- 登录页:
-
-![login_light](https://i.imgtg.com/2023/04/13/8tknp.png)
-
-![login_dark](https://i.imgtg.com/2023/04/13/8tmpP.png)
-
-- 首页:
-
-![home_light](https://i.imgtg.com/2023/04/13/8tl1j.png)
-
-![home_dark](https://i.imgtg.com/2023/04/13/8tpfb.png)
-
-- 表格页:
-
-![table_light](https://i.imgtg.com/2023/04/13/8tfMx.png)
-
-![table_dark](https://i.imgtg.com/2023/04/13/8tv8F.png)
-
-- 数据可视化
-
-![dashboard](https://i.imgtg.com/2023/04/14/82Grx.png)
-
-- 数据大屏:
-
-![dataScreen](https://i.imgtg.com/2023/01/16/QP8HF.png)
-
 ### 文件资源目录 📚
 
 ```text
@@ -184,29 +129,3 @@ Geeker-Admin
 | ![IE](https://i.imgtg.com/2023/04/11/8z7ot.png) | ![Edge](https://i.imgtg.com/2023/04/11/8zr3p.png) | ![Firefox](https://i.imgtg.com/2023/04/11/8zKiU.png) | ![Chrome](https://i.imgtg.com/2023/04/11/8zNrx.png) | ![Safari](https://i.imgtg.com/2023/04/11/8zeGj.png) |
 | :---------------------------------------------: | :-----------------------------------------------: | :--------------------------------------------------: | :-------------------------------------------------: | :-------------------------------------------------: |
 |                   not support                   |                  last 2 versions                  |                   last 2 versions                    |                   last 2 versions                   |                   last 2 versions                   |
-
-### 项目后台接口 🧩
-
-项目后台接口完全采用 Mock 数据,感谢以下 Mock 平台支持:
-
-- FastMock: https://www.fastmock.site
-- EasyMock:https://mock.mengxuegu.com
-
-### 微信交流群 👨‍👨‍👦‍👦
-
-微信一群、二群、三群、四群已满,加作者微信进入五群(支持知识付费)🤪
-
-|                                               微信二维码                                                |
-| :-----------------------------------------------------------------------------------------------------: |
-| <img src="https://pic.ziyuan.wang/user/guest/2024/02/WX20240228-162952@2x_d164375fc0c16.png" width=170> |
-
-### 捐赠 🍵
-
-如果你正在使用这个项目或者喜欢这个项目的,可以通过以下方式支持我:
-
-- Star、Fork、Watch 一键三连 🚀
-- 通过微信、支付宝一次性捐款 ❤
-
-|                                        微信                                        |                                       支付宝                                       |
-| :--------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------: |
-| <img src="https://i.imgtg.com/2023/01/16/QRzBX.png" alt="Alipay QRcode" width=170> | <img src="https://i.imgtg.com/2023/01/16/QRFZt.png" alt="Wechat QRcode" width=170> |