diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..ded2c28 --- /dev/null +++ b/.drone.yml @@ -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 diff --git a/lib/test b/lib/test new file mode 100644 index 0000000..e69de29