diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cb6c85e7ca3442e2e47ee429737bebe73f752679..f05e35bd4b0dbeb539cc968df878115658fa5fcf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,21 +2,27 @@ image: python:3.9-buster # Install all required packages -before_script: - - pip install -r requirements.txt - - apt-get update -qq && apt-get install -y -qq sshpass openssh-client stages: - build - deploy -Build: +build: stage: build + before_script: + - pip install -r requirements.txt script: # --strict is too strict :) - - mkdocs build --verbose + - mkdocs build --verbose > mkdocs.log + artifacts: + paths: + - mkdocs.log -Deploy: +deploy: stage: deploy + needs: + - build + before_script: + - apt-get update -qq && apt-get install -y -qq sshpass openssh-client script: - sshpass -p "$WOLKE_PASSWORD" scp -oStrictHostKeyChecking=no -r /tmp/cr-site/ $WOLKE_USER@wolke.img.univie.ac.at:/var/www/html/documentation/general/