修改ci文件
This commit is contained in:
parent
d833a2febe
commit
f560a8a431
12
.drone.yml
12
.drone.yml
@ -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
|
||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -11,3 +11,4 @@ test/
|
||||
|
||||
node_modules
|
||||
dist
|
||||
.idea
|
||||
|
Loading…
Reference in New Issue
Block a user