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

added dependencies for stages

parent 75804073
No related branches found
No related tags found
No related merge requests found
...@@ -2,21 +2,27 @@ ...@@ -2,21 +2,27 @@
image: python:3.9-buster image: python:3.9-buster
# Install all required packages # Install all required packages
before_script:
- pip install -r requirements.txt
- apt-get update -qq && apt-get install -y -qq sshpass openssh-client
stages: stages:
- build - build
- deploy - deploy
Build: build:
stage: build stage: build
before_script:
- pip install -r requirements.txt
script: script:
# --strict is too strict :) # --strict is too strict :)
- mkdocs build --verbose - mkdocs build --verbose > mkdocs.log
artifacts:
paths:
- mkdocs.log
Deploy: deploy:
stage: deploy stage: deploy
needs:
- build
before_script:
- apt-get update -qq && apt-get install -y -qq sshpass openssh-client
script: script:
- sshpass -p "$WOLKE_PASSWORD" scp -oStrictHostKeyChecking=no -r /tmp/cr-site/ $WOLKE_USER@wolke.img.univie.ac.at:/var/www/html/documentation/general/ - sshpass -p "$WOLKE_PASSWORD" scp -oStrictHostKeyChecking=no -r /tmp/cr-site/ $WOLKE_USER@wolke.img.univie.ac.at:/var/www/html/documentation/general/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment