Skip to content
Snippets Groups Projects
Commit 82b50abd authored by Michael Blaschek's avatar Michael Blaschek :bicyclist:
Browse files

added rsync --delete, build

parent 78b63cd1
Branches
Tags
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment