Fix upload step
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Davide Depau 2020-04-18 20:38:13 +02:00
parent 86f94700a4
commit a6bd7e03e6
1 changed files with 14 additions and 15 deletions

View File

@ -12,21 +12,20 @@ steps:
- name: deploy
image: drillster/drone-rsync
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
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
when:
branch:
- master