fix: drone 部署改用 git reset --hard 避免本地改动冲突
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -14,8 +14,8 @@ steps:
|
||||
|
||||
- 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
|
||||
# 判断是否已有 .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
|
||||
|
||||
- ls -l
|
||||
|
||||
|
||||
Reference in New Issue
Block a user