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

Debug

parent 6510f71f
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,7 @@ cache: ...@@ -19,7 +19,7 @@ cache:
stages: stages:
# - build # - build
# - test # - test
# - docs - docs
- release - release
# - scan # - scan
...@@ -471,7 +471,7 @@ stages: ...@@ -471,7 +471,7 @@ stages:
# - python3 .docs/docker/release.py # - python3 .docs/docker/release.py
docs-docs: docs-docs:
stage: release stage: docs
image: docker.io/python:3.11-slim image: docker.io/python:3.11-slim
only: only:
refs: refs:
...@@ -479,11 +479,12 @@ docs-docs: ...@@ -479,11 +479,12 @@ docs-docs:
script: script:
- apt-get update && apt-get install -y git make sed wget - apt-get update && apt-get install -y git make sed wget
- make docs - make docs
- tar czfv final.tar.gz final/
cache: cache:
policy: push policy: push
key: ${CI_BUILD_REF_NAME} key: ${CI_BUILD_REF_NAME}
paths: paths:
- ./final - ./final.tar.gz
#release-images: #release-images:
# stage: release # stage: release
...@@ -531,13 +532,9 @@ release-docs: ...@@ -531,13 +532,9 @@ release-docs:
refs: refs:
- /^release-.*/ - /^release-.*/
script: script:
- ls -la /
- ls -la /cache
- eval $(ssh-agent -s) - eval $(ssh-agent -s)
- 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
- 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" - "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 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