From 232902ea63663c655169b95322967b0eb63a9a69 Mon Sep 17 00:00:00 2001 From: Sebastian Frank Date: Wed, 20 Feb 2019 13:10:09 +0100 Subject: [PATCH] rsync website in deploy step --- .drone.yml | 9 +++++++++ .vscode/settings.json | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index c8fe00f..9dc67bd 100644 --- a/.drone.yml +++ b/.drone.yml @@ -72,9 +72,18 @@ steps: - name: deploy website image: apairon/mark2web:latest pull: never + environment: + RSYNC_PASS: + from_secret: rsync_pass commands: - /mark2web -version - /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: branch: [ master ] event: [ push ] diff --git a/.vscode/settings.json b/.vscode/settings.json index 733ea1a..023c838 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -6,7 +6,7 @@ "commands": [ { "match": "website/.*", - "cmd": "mark2web -in ${workspaceRoot}/website -out ${workspaceRoot}/html -create", + "cmd": "time mark2web -in ${workspaceRoot}/website -out ${workspaceRoot}/html -create", "silent": false } ]