added drone ci config

This commit is contained in:
Sebastian Frank 2020-11-12 11:18:15 +01:00
parent 436c0babce
commit 0c559245f5
Signed by: apairon
GPG Key ID: 7270D06DDA7FE8C3

27
.drone.yml Normal file
View File

@ -0,0 +1,27 @@
kind: pipeline
type: docker
name: default
steps:
- name: build js app
image: node
commands:
- yarn install
- yarn build
- name: deploy
image: apairon/mark2web:latest
pull: never
environment:
RSYNC_USER: BASISPANEL_RSYNC_USERNAME
RSYNC_PASS: # SET PASSWORD IN ci.basehosts.de
from_secret: rsync_master
commands:
- '
rsync -rlcgD --perms -i -u -v --stats --progress
--delete
-e "sshpass -p $${RSYNC_PASS} ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 22222"
build/
$${RSYNC_USER}@ftp1.webmakers.de:./'
when:
branch: [master]
event: [push]