CI test #11
This commit is contained in:
parent
79f98b2352
commit
2adf63249b
51
.drone.yml
51
.drone.yml
|
@ -45,41 +45,46 @@ steps:
|
||||||
key:
|
key:
|
||||||
from_secret: eigeen_key
|
from_secret: eigeen_key
|
||||||
port: 22
|
port: 22
|
||||||
|
envs:
|
||||||
|
- deploy_dir
|
||||||
script:
|
script:
|
||||||
- cd /www/wwwroot
|
- echo $DEPLOY_DIR
|
||||||
- tar zcf backup.tar.gz www.eigeen.com
|
|
||||||
|
|
||||||
- name: upload
|
- name: upload
|
||||||
image: drillster/drone-rsync
|
image: drillster/drone-rsync
|
||||||
environment:
|
environment:
|
||||||
HOST1:
|
DEPLOY_DIR:
|
||||||
from_secret: production_server_addr
|
from_secret: deploy_dir
|
||||||
settings:
|
settings:
|
||||||
hosts: [ "$HOST1" ]
|
hosts: [ "$HOST1" ]
|
||||||
user:
|
user:
|
||||||
from_secret: remote_user
|
from_secret: remote_user
|
||||||
key:
|
key:
|
||||||
from_secret: eigeen_key
|
from_secret: eigeen_key
|
||||||
source: ./public
|
source: ./public/*
|
||||||
target:
|
target: $DEPLOY_DIR/blog
|
||||||
from_secret: deploy_dir
|
|
||||||
|
|
||||||
- name: deploy
|
# - name: deploy
|
||||||
image: appleboy/drone-ssh
|
# image: appleboy/drone-ssh
|
||||||
environments:
|
# environments:
|
||||||
DEPLOY_DIR:
|
# DEPLOY_DIR:
|
||||||
from_secret: deploy_dir
|
# from_secret: deploy_dir
|
||||||
GLOBIGNORE: .htaccess:.user.ini:public
|
# GLOBIGNORE: .htaccess:.user.ini:public
|
||||||
settings:
|
# settings:
|
||||||
host:
|
# host:
|
||||||
from_secret: production_server_addr
|
# from_secret: production_server_addr
|
||||||
username:
|
# username:
|
||||||
from_secret: remote_user
|
# from_secret: remote_user
|
||||||
key:
|
# key:
|
||||||
from_secret: eigeen_key
|
# from_secret: eigeen_key
|
||||||
port: 22
|
# port: 22
|
||||||
script:
|
# script:
|
||||||
- echo $DEPLOY_DIR
|
# - cd $DEPLOY_DIR
|
||||||
|
# - tar zcf backup.tar.gz ./
|
||||||
|
# - mv $DEPLOY_DIR/*
|
||||||
|
# - unset GLOBIGNORE
|
||||||
|
# - mv $DEPLOY_DIR/public/* $DEPLOY_DIR/
|
||||||
|
# - rm -r $DEPLOY_DIR/public
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
|
|
Loading…
Reference in New Issue