Main repo for Starlark library, with deployment
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
833 B

---
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