28 lines
521 B
YAML
28 lines
521 B
YAML
kind: pipeline
|
|
type: exec
|
|
name: web模块任务
|
|
|
|
platform:
|
|
os: linux
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: Pull latest code from Gitea
|
|
commands:
|
|
- 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 .;
|
|
else
|
|
git pull;
|
|
fi
|
|
- ls -l
|
|
|
|
- name: Restart Nginx
|
|
commands:
|
|
- nginx -s reload
|
|
when:
|
|
branch:
|
|
include:
|
|
- main
|
|
- master
|