From 0caa8e913a3589b9337afd9c95032e5a59857232 Mon Sep 17 00:00:00 2001 From: Martin Weise <martin.weise@tuwien.ac.at> Date: Thu, 7 Mar 2024 13:27:39 +0000 Subject: [PATCH] Updated docs stage --- .gitlab-ci.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e785f7e8a4..6d7f56d7bd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -469,6 +469,19 @@ stages: # - pip install -r ./requirements.txt # - python3 .docs/docker/release.py +docs-docs: + stage: release + image: docker.io/python:3.11-slim + only: + refs: + - /^release-.*/ + script: + - apt-get update && apt-get install -y git make sed wget + - make docs + cache: + paths: + - ./final + release-images: stage: release image: docker:24-dind @@ -507,17 +520,16 @@ release-chart: release-docs: stage: release image: docker.io/finalgene/openssh:9.1 + needs: + - docs-docs only: refs: - /^release-.*/ script: - - apk add git make sed wget - - make docs - eval $(ssh-agent -s) - echo "$CI_KEY_PRIVATE" > /root/.ssh/id_rsa && chmod 0600 /root/.ssh/id_rsa - echo "$CI_KEY_PUBLIC" > /root/.ssh/id_rsa.pub - echo "$CI_DOC_ID" > ~/.ssh/known_hosts - - ls -la - tar czfv final.tar.gz ./final - "scp -oHostKeyAlgorithms=+ssh-rsa -oPubkeyAcceptedAlgorithms=+ssh-rsa final.tar.gz $CI_DOC_USER@$CI_DOC_IP:final.tar.gz" - "ssh -oHostKeyAlgorithms=+ssh-rsa -oPubkeyAcceptedAlgorithms=+ssh-rsa $CI_DOC_USER@$CI_DOC_IP 'rm -rf /system/user/ifs/infrastructures/public_html/dbrepo/*; tar xzfv ./final.tar.gz; rm -f ./final.tar.gz; cp -r ./final/* /system/user/ifs/infrastructures/public_html/dbrepo; rm -rf ./final'" -- GitLab