CI test #6
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2022-03-31 10:25:29 +08:00
parent 9e67973e73
commit c8f4253a31

View File

@@ -35,7 +35,7 @@ steps:
- success
- failure
- name: backup-old-version
- name: backup-site
image: appleboy/drone-ssh
settings:
host:
@@ -48,9 +48,8 @@ steps:
script:
- cd /www/wwwroot
- tar zcf backup.tar.gz www.eigeen.com
# - rm -rf www.eigeen.com/*
- name: deploy
- name: upload
image: drillster/drone-rsync
environment:
HOST1:
@@ -65,6 +64,25 @@ steps:
target:
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:
- name: cache
host: