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