From e38cc6acdf774aa341be31ba2a49aad30411bb34 Mon Sep 17 00:00:00 2001
From: MB <michael.blaschek@univie.ac.at>
Date: Thu, 7 Dec 2023 11:12:14 +0000
Subject: [PATCH] fixed gitlabci

---
 .gitlab-ci.yml | 27 ++++++++++++++-------------
 1 file changed, 14 insertions(+), 13 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b88fb1f..1bc749d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,13 +1,14 @@
-image: python:3.10-buster
+# image: python:3.10-buster
+image: harbor.wolke.img.univie.ac.at/podman/mkdocs-computer:latest
 
-variables:
-  PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
+#variables:
+#  PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
 
 # Cache between jobs in the same branch
 cache:
   - key: $CI_COMMIT_REF_SLUG
-  - paths:
-      - .cache/pip
+#  - paths:
+#      - .cache/pip
 
 stages:
   - build
@@ -15,12 +16,12 @@ stages:
 
 build:
   stage: build
-  when: manual
-  before_script:
+  #when: manual
+  #before_script:
     # Install all required packages
-    - apt-get update -y
-    - apt-get install -y -qq graphviz
-    - pip install -r requirements.txt
+  #  - apt-get update -y
+  #  - apt-get install -y -qq graphviz
+  #  - pip install -r requirements.txt
   script:
     # --strict is too strict :)
     - mkdocs build -c --verbose
@@ -31,11 +32,11 @@ build:
 
 deploy:
   stage: deploy
-  when: manual
+  #when: manual
   needs:
     - build
-  before_script:
-    - apt-get update -qq && apt-get install -y -qq sshpass openssh-client rsync
+  #before_script:
+  #  - apt-get update -qq && apt-get install -y -qq sshpass openssh-client rsync
   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" rsync -autv --delete -e "ssh -o StrictHostKeyChecking=no" ./site/ $WOLKE_USER@wolke.img.univie.ac.at:/var/www/html/documentation/general
-- 
GitLab