This commit is contained in:
parent
86f94700a4
commit
a6bd7e03e6
1 changed files with 14 additions and 15 deletions
19
.drone.yml
19
.drone.yml
|
@ -12,21 +12,20 @@ steps:
|
|||
|
||||
- name: deploy
|
||||
image: drillster/drone-rsync
|
||||
hosts:
|
||||
- 10.69.0.22
|
||||
settings:
|
||||
hosts: 10.69.0.22
|
||||
port: 3022
|
||||
key:
|
||||
from_secret: starlark_ssh_key
|
||||
source: ./lib
|
||||
target: /starlark/lib_new
|
||||
recursive: true
|
||||
exclude:
|
||||
- ".git/"
|
||||
script:
|
||||
- cd /starlark
|
||||
- mv lib lib_old
|
||||
- mv lib_new lib
|
||||
- rm -Rf lib_old
|
||||
recursive: 'true'
|
||||
exclude: ".git/"
|
||||
script: |
|
||||
cd /starlark
|
||||
mv lib lib_old
|
||||
mv lib_new lib
|
||||
rm -Rf lib_old
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
|
|
Loading…
Reference in a new issue