starlark_lib/.drone.yml

33 lines
589 B
YAML
Raw Normal View History

2020-04-18 18:17:59 +00:00
---
kind: pipeline
type: docker
name: deploy
steps:
- name: submodules
image: alpine/git
commands:
2020-04-18 18:34:44 +00:00
- git submodules update --recursive
2020-04-18 18:31:46 +00:00
- git pull origin master --recurse-submodules=yes
2020-04-18 18:17:59 +00:00
- 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