|
|
|
@ -19,22 +19,22 @@ steps:
|
|
|
|
|
- pwd
|
|
|
|
|
- ls -alt
|
|
|
|
|
- npm config set registry https://registry.npm.taobao.org # 切换淘宝镜像
|
|
|
|
|
- yarn
|
|
|
|
|
- yarn build
|
|
|
|
|
- npm install
|
|
|
|
|
- npm run build
|
|
|
|
|
when:
|
|
|
|
|
event: push
|
|
|
|
|
- name: deploy-project
|
|
|
|
|
image: appleboy/drone-scp
|
|
|
|
|
settings:
|
|
|
|
|
host: 1.117.68.37
|
|
|
|
|
host: ssh_ip
|
|
|
|
|
username: root
|
|
|
|
|
password:
|
|
|
|
|
from_secret: jxb_server_pwd
|
|
|
|
|
from_secret: ssh_password
|
|
|
|
|
port: 22
|
|
|
|
|
target: /www/wwwroot/jxb.admin.guwengkj.com #宿主机绝对路径
|
|
|
|
|
target: /www/wwwroot/admin.gwkjxb.com #宿主机绝对路径
|
|
|
|
|
source: ./dist/*
|
|
|
|
|
script:
|
|
|
|
|
- rm -rf /www/wwwroot/jxb.admin.guwengkj.com/dist/
|
|
|
|
|
- rm -rf /www/wwwroot/admin.gwkjxb.com/dist/
|
|
|
|
|
when:
|
|
|
|
|
event: push
|
|
|
|
|
- name: notify
|
|
|
|
|