最后一次
This commit is contained in:
21
.drone.yml
21
.drone.yml
@@ -2,21 +2,26 @@ kind: pipeline
|
|||||||
type: exec
|
type: exec
|
||||||
name: web模块
|
name: web模块
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Pull latest code from Gitea
|
- name: Pull latest code from Gitea
|
||||||
image: alpine:latest
|
|
||||||
timeout: 3m
|
|
||||||
commands:
|
commands:
|
||||||
- apk add --no-cache git
|
|
||||||
- cd /www/wwwroot/hgdemo.hgidc.cn/public/web/BlackFruit-web
|
- cd /www/wwwroot/hgdemo.hgidc.cn/public/web/BlackFruit-web
|
||||||
- git clone https://yiqiu:ycyawCOM996.@gitea.ycyaw.com/yiqiu/BlackFruit-UI.git . || git pull
|
- if [ ! -d .git ]; then
|
||||||
|
git clone https://yiqiu:***@gitea.ycyaw.com/yiqiu/BlackFruit-UI.git .;
|
||||||
|
else
|
||||||
|
git pull;
|
||||||
|
fi
|
||||||
- ls -l
|
- ls -l
|
||||||
|
|
||||||
- name: Restart Nginx
|
- name: Restart Nginx
|
||||||
image: alpine:latest
|
|
||||||
timeout: 3m
|
|
||||||
commands:
|
commands:
|
||||||
- apk add --no-cache nginx
|
|
||||||
- nginx -s reload
|
- nginx -s reload
|
||||||
when:
|
when:
|
||||||
branch: main
|
branch:
|
||||||
|
include:
|
||||||
|
- main
|
||||||
|
- master
|
||||||
|
|||||||
Reference in New Issue
Block a user