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 - 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