更新自动化问价
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
yiqiu
2025-11-20 22:09:33 +08:00
parent dea00abd75
commit 3e345e9e22

View File

@@ -9,12 +9,14 @@ platform:
steps: steps:
- name: Pull latest code from Gitea - name: Pull latest code from Gitea
commands: 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 - cd /www/wwwroot/hgdemo.hgidc.cn/public/web/BlackFruit-web
- if [ ! -d .git ]; then
git clone https://yiqiu:***@gitea.ycyaw.com/yiqiu/BlackFruit-UI.git .; # 判断是否已有 .git没有就 clone有就 pull
else - if [ ! -d .git ]; then git clone https://yiqiu:***@gitea.ycyaw.com/yiqiu/BlackFruit-UI.git .; else git pull; fi
git pull;
fi
- ls -l - ls -l
- name: Restart Nginx - name: Restart Nginx