starlark_lib/.drone.yml

36 lines
709 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:39:08 +00:00
- git submodule update --recursive
2020-04-18 22:00:37 +00:00
- cat .gitmodules | grep 'path =' | while read -r path; do
- cd "$path"
- git pull origin master
- cd -
- done
2020-04-18 18:17:59 +00:00
- name: deploy
image: drillster/drone-rsync
2020-04-18 18:38:13 +00:00
settings:
2020-04-18 18:41:30 +00:00
hosts: 10.69.0.2
2020-04-18 18:38:13 +00:00
port: 3022
key:
from_secret: starlark_ssh_key
2020-04-18 18:57:17 +00:00
source: ./lib/
target: /starlark/lib_new/
2020-04-18 18:38:13 +00:00
recursive: 'true'
exclude: ".git/"
2020-04-18 18:57:17 +00:00
script:
- cd /starlark
- mv lib lib_old
- mv lib_new lib
- rm -Rf lib_old
2020-04-18 18:17:59 +00:00
when:
branch:
- master