From 2471b50a435dca5dcaf1ada4e3c02dc6d2a5e9f4 Mon Sep 17 00:00:00 2001 From: Michael Blaschek <michael.blaschek@univie.ac.at> Date: Mon, 23 Jan 2023 10:21:34 +0000 Subject: [PATCH] added dependencies for stages --- .gitlab-ci.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cb6c85e..f05e35b 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/ -- GitLab