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

Merge the successful changes to latest

parent acee70c9
No related branches found
No related tags found
No related merge requests found
...@@ -572,9 +572,9 @@ release-docs: ...@@ -572,9 +572,9 @@ release-docs:
- echo "$CI_KEY_PRIVATE" > /root/.ssh/id_rsa && chmod 0600 /root/.ssh/id_rsa - 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_KEY_PUBLIC" > /root/.ssh/id_rsa.pub
- echo "$CI_DOC_ID" > ~/.ssh/known_hosts - echo "$CI_DOC_ID" > ~/.ssh/known_hosts
- tar czfv ./final.tar.gz ./final - tar czf ./final.tar.gz ./final
- "scp -oHostKeyAlgorithms=+ssh-rsa -oPubkeyAcceptedAlgorithms=+ssh-rsa final.tar.gz $CI_DOC_USER@$CI_DOC_IP:final.tar.gz" - "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'" - "ssh -oHostKeyAlgorithms=+ssh-rsa -oPubkeyAcceptedAlgorithms=+ssh-rsa $CI_DOC_USER@$CI_DOC_IP 'rm -rf /system/user/ifs/infrastructures/public_html/dbrepo/*; tar xzf ./final.tar.gz; rm -f ./final.tar.gz; cp -r ./final/* /system/user/ifs/infrastructures/public_html/dbrepo; rm -rf ./final'"
release-libs: release-libs:
stage: release stage: release
......
...@@ -16,9 +16,7 @@ function generate_sphinx { ...@@ -16,9 +16,7 @@ function generate_sphinx {
git reset --hard && git checkout "$BRANCH" git reset --hard && git checkout "$BRANCH"
pip install -r ./requirements.txt > /dev/null pip install -r ./requirements.txt > /dev/null
mkdir -p ./final mkdir -p ./final
if [ "$1" = "latest" ]; then
sed -i -e "s/__APPVERSION__/${APP_VERSION}/g" ./lib/python/setup.py ./lib/python/pyproject.toml ./lib/python/docs/conf.py ./lib/python/docs/index.rst ./lib/python/docs/index.rst sed -i -e "s/__APPVERSION__/${APP_VERSION}/g" ./lib/python/setup.py ./lib/python/pyproject.toml ./lib/python/docs/conf.py ./lib/python/docs/index.rst ./lib/python/docs/index.rst
fi
sphinx-apidoc -o ./lib/python/docs/source ./lib/python/dbrepo sphinx-apidoc -o ./lib/python/docs/source ./lib/python/dbrepo
sphinx-build -M html ./lib/python/docs/ ./lib/python/docs/build/ sphinx-build -M html ./lib/python/docs/ ./lib/python/docs/build/
cp -r ./lib/python/docs/build/html "./final/$1/sphinx" cp -r ./lib/python/docs/build/html "./final/$1/sphinx"
...@@ -90,6 +88,7 @@ for i in "${!versions[@]}"; do ...@@ -90,6 +88,7 @@ for i in "${!versions[@]}"; do
version="${versions[i]}" version="${versions[i]}"
generate_api "$version" generate_api "$version"
generate_docs "$version" generate_docs "$version"
generate_sphinx "$version" || true
done done
......
...@@ -10,3 +10,7 @@ build==1.1.1 ...@@ -10,3 +10,7 @@ build==1.1.1
setuptools==69.2.0 setuptools==69.2.0
twine==5.0.0 twine==5.0.0
furo==2024.1.29 furo==2024.1.29
requests==2.31.0
pika==1.3.2
pydantic==2.6.4
tuspy==1.0.3
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment