diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b88fb1f015562b8cf31e90acbfa39c2619c82054..1bc749d9b6b5b6c78d2783b1c578b1e233df1786 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