From 82b50abd65a5aeb2c571963a8faab2d1a5b740eb Mon Sep 17 00:00:00 2001 From: Michael Blaschek <michael.blaschek@univie.ac.at> Date: Mon, 23 Jan 2023 16:01:09 +0000 Subject: [PATCH] added rsync --delete, build --- .gitlab-ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0c17c77..6bd3633 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -25,7 +25,7 @@ build: - pip install -r requirements.txt script: # --strict is too strict :) - - mkdocs build --verbose > mkdocs.log + - mkdocs build --verbose 2>&1 > mkdocs.log artifacts: paths: - mkdocs.log @@ -39,9 +39,10 @@ deploy: needs: - build before_script: - - apt-get update -qq && apt-get install -y -qq sshpass openssh-client + - apt-get update -qq && apt-get install -y -qq sshpass openssh-client rsync script: - - sshpass -p "$WOLKE_PASSWORD" scp -oStrictHostKeyChecking=no -r ./site/ $WOLKE_USER@wolke.img.univie.ac.at:/var/www/html/documentation/general/ + # - sshpass -p "$WOLKE_PASSWORD" scp -oStrictHostKeyChecking=no -r ./site/* $WOLKE_USER@wolke.img.univie.ac.at:/var/www/html/documentation/general/ + - sshpass -p "$WOLKE_PASSWORD" rsync -atv --delete -oStrictHostKeyChecking=no ./site $WOLKE_USER@wolke.img.univie.ac.at:/var/www/html/documentation/general cache: key: build-cache paths: -- GitLab