starlark_lib/.drone.yml

32 lines
609 B
YAML

---
kind: pipeline
type: docker
name: deploy
steps:
- name: submodules
image: alpine/git
commands:
- git submodules update --recursive
- git pull origin master --recurse-submodules=yes
- name: deploy
image: drillster/drone-rsync
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