Add test config

This commit is contained in:
Davide Depau 2020-04-18 20:17:59 +02:00
parent 7ab8521682
commit eb824d251a
2 changed files with 31 additions and 0 deletions

31
.drone.yml Normal file
View File

@ -0,0 +1,31 @@
---
kind: pipeline
type: docker
name: deploy
steps:
- name: submodules
image: alpine/git
commands:
- git submodule update --recursive --remote
- 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
when:
branch:
- master

0
lib/test Normal file
View File