starlark_lib/.drone.yml

41 lines
833 B
YAML

---
kind: pipeline
type: docker
name: deploy
steps:
- name: submodules
image: alpine/git
commands:
- git submodule update --init --recursive --remote
- cat .gitmodules | grep 'path =' | awk '{ print $3 }'| while read -r path; do
- cd "$path"
- git pull origin master
- cd -
- done
- name: deploy
image: drillster/drone-rsync
settings:
hosts: 10.69.0.2
port: 3022
key:
from_secret: starlark_ssh_key
source: ./lib/
target: /starlark/lib_new/
recursive: 'true'
exclude:
- ".git/"
- ".git"
- "LICENSE"
- "README"
- "README.md"
script:
- cd /starlark
- mv lib lib_old
- mv lib_new lib
- rm -Rf lib_old
when:
branch:
- master