CI test #11
continuous-integration/drone/push Build was killed Details
continuous-integration/drone Build is failing Details

This commit is contained in:
Eigeen 2022-03-31 12:54:17 +08:00
parent 79f98b2352
commit 2adf63249b
1 changed files with 28 additions and 23 deletions

View File

@ -45,41 +45,46 @@ steps:
key:
from_secret: eigeen_key
port: 22
envs:
- deploy_dir
script:
- cd /www/wwwroot
- tar zcf backup.tar.gz www.eigeen.com
- echo $DEPLOY_DIR
- name: upload
image: drillster/drone-rsync
environment:
HOST1:
from_secret: production_server_addr
DEPLOY_DIR:
from_secret: deploy_dir
settings:
hosts: [ "$HOST1" ]
user:
from_secret: remote_user
key:
from_secret: eigeen_key
source: ./public
target:
from_secret: deploy_dir
source: ./public/*
target: $DEPLOY_DIR/blog
- name: deploy
image: appleboy/drone-ssh
environments:
DEPLOY_DIR:
from_secret: deploy_dir
GLOBIGNORE: .htaccess:.user.ini:public
settings:
host:
from_secret: production_server_addr
username:
from_secret: remote_user
key:
from_secret: eigeen_key
port: 22
script:
- echo $DEPLOY_DIR
# - name: deploy
# image: appleboy/drone-ssh
# environments:
# DEPLOY_DIR:
# from_secret: deploy_dir
# GLOBIGNORE: .htaccess:.user.ini:public
# settings:
# host:
# from_secret: production_server_addr
# username:
# from_secret: remote_user
# key:
# from_secret: eigeen_key
# port: 22
# script:
# - 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:
- name: cache