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

fixed gitlabci

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