ci
This commit is contained in:
parent
c477860168
commit
f5f41da866
54
.drone.yml
Normal file
54
.drone.yml
Normal file
@ -0,0 +1,54 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: ssh
|
||||
name: "自动部署"
|
||||
|
||||
server:
|
||||
host: 175.178.113.105
|
||||
user: root
|
||||
ssh_key:
|
||||
from_secret: SSH_KEY
|
||||
|
||||
clone:
|
||||
disable: true
|
||||
|
||||
steps:
|
||||
- name: "设置远端Git"
|
||||
environment:
|
||||
GIT_NAME:
|
||||
from_secret: GIT_NAME
|
||||
GIT_PASSWD:
|
||||
from_secret: GIT_PASSWD
|
||||
commands:
|
||||
- echo "Git 设置"
|
||||
- cd /www/wwwroot/we.cnp5.cn/addons/ewei_shopv2
|
||||
- git remote rm origin
|
||||
- git remote add origin ssh://git@home.des8.com:8022/heibai2006/wpfw_ewei_shopv2.git
|
||||
|
||||
- name: "git更新代码"
|
||||
commands:
|
||||
- echo "git更新代码"
|
||||
- cd /www/wwwroot/we.cnp5.cn/addons/ewei_shopv2
|
||||
- pwd && ls -l
|
||||
- git pull origin main
|
||||
|
||||
- name: "复制api文件"
|
||||
commands:
|
||||
- echo "复制api文件到app目录"
|
||||
- printenv
|
||||
- pwd
|
||||
- /bin/cp -f /www/wwwroot/we.cnp5.cn/addons/ewei_shopv2/ewei_shopv2_api.php /www/wwwroot/we.cnp5.cn/ewei_shopv2_api.php
|
||||
- /bin/cp -f /www/wwwroot/we.cnp5.cn/addons/ewei_shopv2/api.php /www/wwwroot/we.cnp5.cn/api.php
|
||||
|
||||
- name: "更改文件权限"
|
||||
commands:
|
||||
- echo "更改文件权限"
|
||||
- cd /www/wwwroot/we.cnp5.cn/addons/ewei_shopv2
|
||||
- chown -R www:www ./
|
||||
- pwd && ls -l
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- push
|
||||
- pull_request
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
/data
|
||||
__MACOSX
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -199,7 +199,7 @@ class Index_EweiShopV2Page extends AppMobilePage
|
||||
|
||||
|
||||
|
||||
// print_r($row['goods']);exit;
|
||||
//print_r($row['goods']);exit;
|
||||
|
||||
$statuscss = "text-cancel";
|
||||
$nextstatus='';
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user