This commit is contained in:
parent
324cb80973
commit
893d90f031
28
.drone.yml
28
.drone.yml
@ -13,28 +13,46 @@ clone:
|
|||||||
disable: true
|
disable: true
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Git
|
- name: Git Set
|
||||||
environment:
|
environment:
|
||||||
GIT_NAME:
|
GIT_NAME:
|
||||||
from_secret: GIT_NAME
|
from_secret: GIT_NAME
|
||||||
GIT_PASSWD:
|
GIT_PASSWD:
|
||||||
from_secret: GIT_PASSWD
|
from_secret: GIT_PASSWD
|
||||||
commands:
|
commands:
|
||||||
- echo "git准备"
|
- echo "Git 设置"
|
||||||
|
- cd /www/wwwroot/car.des8.com
|
||||||
|
- git remote rm origin
|
||||||
|
- git remote add origin http://heibai2006:4167208@git.des8.com/heibai2006/car4s.git
|
||||||
#- echo "[remote \"origin\"]\n" > ~/.gitconfig
|
#- echo "[remote \"origin\"]\n" > ~/.gitconfig
|
||||||
#- echo "url = http://$GIT_NAME:$GIT_PASSWD@git.des8.com/heibai2006/car4s.git" > ~/.gitconfig
|
#- echo "url = http://$GIT_NAME:$GIT_PASSWD@git.des8.com/heibai2006/car4s.git" > ~/.gitconfig
|
||||||
|
|
||||||
- name: Clone
|
- name: Clone
|
||||||
commands:
|
commands:
|
||||||
- echo "Clone代码"
|
- echo "Clone 代码"
|
||||||
- cd /www/wwwroot/car.des8.com
|
- cd /www/wwwroot/car.des8.com
|
||||||
- pwd && ls -l
|
- pwd && ls -l
|
||||||
- git remote rm origin
|
|
||||||
- git remote add origin http://heibai2006:4167208@git.des8.com/heibai2006/car4s.git
|
|
||||||
- git pull origin master
|
- git pull origin master
|
||||||
|
|
||||||
|
- name: Env
|
||||||
|
commands:
|
||||||
|
- echo "设置Env配置"
|
||||||
|
- echo "[app]" > .env
|
||||||
|
- echo "debug = false" >> .env
|
||||||
|
- echo "trace = false" >> .env
|
||||||
|
- echo "[database]" >> .env
|
||||||
|
- echo "hostname = 127.0.0.1" >> .env
|
||||||
|
- echo "database = car_des8_com" >> .env
|
||||||
|
- echo "username = car_des8_com" >> .env
|
||||||
|
- echo "password = eSfcCeDH76zC3MLG" >> .env
|
||||||
|
- echo "hostport = 3306" >> .env
|
||||||
|
- echo "prefix = car_" >> .env
|
||||||
|
- echo "debug = false" >> .env
|
||||||
|
- cat .env
|
||||||
|
|
||||||
- name: Chown to www
|
- name: Chown to www
|
||||||
commands:
|
commands:
|
||||||
|
- echo "更改文件权限"
|
||||||
- chown -R www:www ./
|
- chown -R www:www ./
|
||||||
- pwd && ls -l
|
- pwd && ls -l
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user