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
|
- name: deploy
|
||||||
image: drillster/drone-rsync
|
image: drillster/drone-rsync
|
||||||
hosts:
|
settings:
|
||||||
- 10.69.0.22
|
hosts: 10.69.0.22
|
||||||
port: 3022
|
port: 3022
|
||||||
key:
|
key:
|
||||||
from_secret: starlark_ssh_key
|
from_secret: starlark_ssh_key
|
||||||
source: ./lib
|
source: ./lib
|
||||||
target: /starlark/lib_new
|
target: /starlark/lib_new
|
||||||
recursive: true
|
recursive: 'true'
|
||||||
exclude:
|
exclude: ".git/"
|
||||||
- ".git/"
|
script: |
|
||||||
script:
|
cd /starlark
|
||||||
- cd /starlark
|
mv lib lib_old
|
||||||
- mv lib lib_old
|
mv lib_new lib
|
||||||
- mv lib_new lib
|
rm -Rf lib_old
|
||||||
- rm -Rf lib_old
|
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
|
|
Loading…
Reference in a new issue