Files
BlackFruit-UI/.drone.yml
yiqiu a82bf8baa5
All checks were successful
continuous-integration/drone/push Build is passing
feat: 添加hgcart购物车模板+Drone部署同步
- 解压default_npant.tar.gz到clientarea/cart/hgcart/
- .drone.yml增加hgcart同步到cart/template/pc/
2026-03-22 20:36:15 +08:00

40 lines
1.6 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
kind: pipeline
type: exec
name: web模块任务
platform:
os: linux
arch: amd64
steps:
- name: Pull latest code from Gitea
commands:
# 添加 safe.directory解决 Git “dubious ownership” 报错
- git config --global --add safe.directory /www/wwwroot/hgdemo.hgidc.cn/public/web/BlackFruit-web
- cd /www/wwwroot/hgdemo.hgidc.cn/public/web/BlackFruit-web
# 判断是否已有 .git没有就 clone有就强制同步远程最新代码
- if [ ! -d .git ]; then git clone https://yiqiu:***@gitea.ycyaw.com/yiqiu/BlackFruit-UI.git .; else git fetch --all && git reset --hard origin/main; fi
# 将主题配置插件同步到运行目录
- cp -rf /www/wwwroot/hgdemo.hgidc.cn/public/web/BlackFruit-web/plugins/addon/theme_configurator /www/wwwroot/hgdemo.hgidc.cn/public/plugins/addon/
# 将会员中心全局主题 hgcloud 同步到运行目录
- cp -rf /www/wwwroot/hgdemo.hgidc.cn/public/web/BlackFruit-web/clientarea/hgcloud /www/wwwroot/hgdemo.hgidc.cn/public/clientarea/template/pc/
# 将用户中心仪表盘主题 hgcloud_home 同步到运行目录
- cp -rf /www/wwwroot/hgdemo.hgidc.cn/public/web/BlackFruit-web/clientarea/home/hgcloud_home /www/wwwroot/hgdemo.hgidc.cn/public/home/template/pc/
# 将购物车主题 hgcart 同步到运行目录
- cp -rf /www/wwwroot/hgdemo.hgidc.cn/public/web/BlackFruit-web/clientarea/cart/hgcart /www/wwwroot/hgdemo.hgidc.cn/public/cart/template/pc/
- name: Restart Nginx
commands:
- nginx -s reload
when:
branch:
include:
- main
- master