Skip to content
Snippets Groups Projects
Verified Commit 0caa8e91 authored by Martin Weise's avatar Martin Weise
Browse files

Updated docs stage

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