rsync website in deploy step
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Sebastian Frank 2019-02-20 13:10:09 +01:00
parent e79a527ac6
commit 232902ea63
Signed by: apairon
GPG Key ID: 7270D06DDA7FE8C3
2 changed files with 10 additions and 1 deletions

View File

@ -72,9 +72,18 @@ steps:
- name: deploy website - name: deploy website
image: apairon/mark2web:latest image: apairon/mark2web:latest
pull: never pull: never
environment:
RSYNC_PASS:
from_secret: rsync_pass
commands: commands:
- /mark2web -version - /mark2web -version
- /mark2web -in website -out html -create -logLevel debug - /mark2web -in website -out html -create -logLevel debug
- '
rsync -rlcgD -i -u -v --stats --progress
--delete
-e "sshpass -p ${RSYNC_PASS} ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 22222"
html/
basiskonfiguration_mark2web_rsync@deploy.bc1.basehosts.de:./'
when: when:
branch: [ master ] branch: [ master ]
event: [ push ] event: [ push ]

View File

@ -6,7 +6,7 @@
"commands": [ "commands": [
{ {
"match": "website/.*", "match": "website/.*",
"cmd": "mark2web -in ${workspaceRoot}/website -out ${workspaceRoot}/html -create", "cmd": "time mark2web -in ${workspaceRoot}/website -out ${workspaceRoot}/html -create",
"silent": false "silent": false
} }
] ]