23 lines
377 B
YAML
23 lines
377 B
YAML
|
kind: pipeline
|
||
|
type: docker
|
||
|
name: default
|
||
|
|
||
|
steps:
|
||
|
- name: copy config
|
||
|
image: instrumentisto/rsync-ssh
|
||
|
volumes:
|
||
|
- name: data
|
||
|
path: /data
|
||
|
commands:
|
||
|
- rsync -av demo-api /data/
|
||
|
when:
|
||
|
branch:
|
||
|
- dev
|
||
|
event: [ push ]
|
||
|
|
||
|
|
||
|
volumes:
|
||
|
- name: data
|
||
|
host:
|
||
|
path: /data/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}/${DRONE_BRANCH}
|