diff --git a/.drone.yml b/.drone.yml index 0f08183..4cf00a0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -36,9 +36,14 @@ steps: - name: "Git 设置" commands: - export WEBROOT=$WEBROOT + - export MYSQLHOST=$MYSQLHOST + - export MYSQLNAME=$MYSQLNAME + - export MYSQLUSER=$MYSQLUSER + - export MYSQLPASSWD=$MYSQLPASSWD + - export MYSQLPORT=$MYSQLPORT - export GIT_NAME=$GIT_NAME - export GIT_PASSWD=$GIT_PASSWD - - echo $WEBROOT + - echo "$WEBROOT" - cd $WEBROOT - git remote rm origin - git remote add origin http://$GIT_NAME:$GIT_PASSWD@git.des8.com/heibai2006/car4s.git @@ -54,12 +59,6 @@ steps: - name: "设置Env配置" commands: - echo "设置Env配置" - - export WEBROOT=$WEBROOT - - export MYSQLHOST=$MYSQLHOST - - export MYSQLNAME=$MYSQLNAME - - export MYSQLUSER=$MYSQLUSER - - export MYSQLPASSWD=$MYSQLPASSWD - - export MYSQLPORT=$MYSQLPORT - echo $WEBROOT - cd $WEBROOT - echo "[app]" > .env @@ -77,7 +76,6 @@ steps: - name: "更改文件权限" commands: - - export WEBROOT=$WEBROOT - echo "更改文件权限" - rm -rf ./public/.user.ini - cd $WEBROOT @@ -87,7 +85,6 @@ steps: - name: "清除缓存" commands: - - export WEBROOT=$WEBROOT - echo "清除缓存" - cd $WEBROOT/runtime - rm -rf ./cache