Files
BlackFruit-UI/.drone.yml
yiqiu 3e345e9e22
All checks were successful
continuous-integration/drone/push Build is passing
更新自动化问价
2025-11-20 22:09:33 +08:00

30 lines
730 B
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有就 pull
- if [ ! -d .git ]; then git clone https://yiqiu:***@gitea.ycyaw.com/yiqiu/BlackFruit-UI.git .; else git pull; fi
- ls -l
- name: Restart Nginx
commands:
- nginx -s reload
when:
branch:
include:
- main
- master