This commit is contained in:
12
.drone.yml
12
.drone.yml
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user