tibi-docs/.drone.yml

42 lines
1023 B
YAML
Raw Normal View History

2022-11-02 15:16:12 +01:00
kind: pipeline
type: docker
name: default
steps:
- name: yarn install
image: node:18
pull: if-not-exists
environment:
FORCE_COLOR: "true"
commands:
- yarn install
- name: build
image: node:18
pull: if-not-exists
environment:
FORCE_COLOR: "true"
commands:
- yarn build
- name: deploy
image: instrumentisto/rsync-ssh
pull: if-not-exists
environment:
2022-11-02 15:18:22 +01:00
RSYNC_HOST: ftp1.webmakers.de
2022-11-02 15:16:12 +01:00
RSYNC_PORT: 22222
RSYNC_USER: webmakers_tibi_docs_rsync_master
RSYNC_PASS:
from_secret: rsync_master
commands:
2022-11-02 15:17:51 +01:00
- >
2022-11-02 15:16:12 +01:00
rsync -rlcgD --perms -i -u -v --stats --progress
--delete
-e "sshpass -p $${RSYNC_PASS} ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p $${RSYNC_PORT}"
2022-11-02 15:17:51 +01:00
_docpress/
2022-11-02 15:16:12 +01:00
$${RSYNC_USER}@$${RSYNC_HOST}:./
when:
branch: [master]
event: [push]