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
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,7 @@ build: ...@@ -25,7 +25,7 @@ build:
- pip install -r requirements.txt - pip install -r requirements.txt
script: script:
# --strict is too strict :) # --strict is too strict :)
- mkdocs build --verbose > mkdocs.log - mkdocs build --verbose 2>&1 > mkdocs.log
artifacts: artifacts:
paths: paths:
- mkdocs.log - mkdocs.log
...@@ -39,9 +39,10 @@ deploy: ...@@ -39,9 +39,10 @@ deploy:
needs: needs:
- build - build
before_script: 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: 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: cache:
key: build-cache key: build-cache
paths: paths:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment