parent
9e67973e73
commit
c8f4253a31
24
.drone.yml
24
.drone.yml
|
@ -35,7 +35,7 @@ steps:
|
||||||
- success
|
- success
|
||||||
- failure
|
- failure
|
||||||
|
|
||||||
- name: backup-old-version
|
- name: backup-site
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
settings:
|
settings:
|
||||||
host:
|
host:
|
||||||
|
@ -48,9 +48,8 @@ steps:
|
||||||
script:
|
script:
|
||||||
- cd /www/wwwroot
|
- cd /www/wwwroot
|
||||||
- tar zcf backup.tar.gz www.eigeen.com
|
- tar zcf backup.tar.gz www.eigeen.com
|
||||||
# - rm -rf www.eigeen.com/*
|
|
||||||
|
|
||||||
- name: deploy
|
- name: upload
|
||||||
image: drillster/drone-rsync
|
image: drillster/drone-rsync
|
||||||
environment:
|
environment:
|
||||||
HOST1:
|
HOST1:
|
||||||
|
@ -65,6 +64,25 @@ steps:
|
||||||
target:
|
target:
|
||||||
from_secret: deploy_dir
|
from_secret: deploy_dir
|
||||||
|
|
||||||
|
- name: deploy
|
||||||
|
image: appleboy/drone-ssh
|
||||||
|
environments:
|
||||||
|
DEPLOY_DIR:
|
||||||
|
from_secret: deploy_dir
|
||||||
|
settings:
|
||||||
|
host:
|
||||||
|
from_secret: production_server_addr
|
||||||
|
username:
|
||||||
|
from_secret: remote_user
|
||||||
|
key:
|
||||||
|
from_secret: eigeen_key
|
||||||
|
port: 22
|
||||||
|
script:
|
||||||
|
- cd $DEPLOY_DIR
|
||||||
|
- rm -rf !(.htaccess | .user.ini | public)
|
||||||
|
- mv ./public/* ./
|
||||||
|
- rm -f public
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
host:
|
host:
|
||||||
|
|
Loading…
Reference in New Issue