Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DBRepo
Manage
Activity
Members
Labels
Plan
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FAIR Data Austria DB Repository
DBRepo
Commits
b8701c24
Verified
Commit
b8701c24
authored
1 year ago
by
Martin Weise
Browse files
Options
Downloads
Patches
Plain Diff
Updated cache
parent
8c632d15
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.docs/build-website.sh
+9
-4
9 additions, 4 deletions
.docs/build-website.sh
.gitlab-ci.yml
+4
-5
4 additions, 5 deletions
.gitlab-ci.yml
with
13 additions
and
9 deletions
.docs/build-website.sh
+
9
−
4
View file @
b8701c24
...
...
@@ -3,11 +3,14 @@
OVERRIDES_MAIN_HTML
=
""
SCRIPTS_EXTRA_JS
=
""
function
clean_cache
{
echo
"Removing cache from directory ./site"
rm
-rf
./site
}
function
generate_docs
{
BRANCH
=
"release-
$1
"
echo
"==================================================="
echo
"Removing cache from directory ./site"
rm
-rf
./site
echo
"Building DOCS for version
$1
on branch
$BRANCH
"
echo
"==================================================="
git reset
--hard
&&
git checkout
"
$BRANCH
"
...
...
@@ -26,13 +29,12 @@ function generate_docs {
find .docs/
-type
f
-exec
sed
-i
-e
"s/__CHARTVERSION__/
$1
/g"
{}
\;
mkdocs build
>
/dev/null
&&
cp
-r
./site
"./final/
$1
"
cp
-r
"./swagger/
$1
"
"./final/
$1
/swagger"
clean_cache
}
function
generate_api
{
BRANCH
=
"release-
$1
"
echo
"==================================================="
echo
"Removing cache from directory ./site"
rm
-rf
./site
echo
"Building API for version
$1
on branch
$BRANCH
"
echo
"==================================================="
git reset
--hard
&&
git checkout
"
$BRANCH
"
...
...
@@ -40,6 +42,7 @@ function generate_api {
find ./site
-type
f
-exec
sed
-i
-e
"s/__APPVERSION__/
$1
/g"
{}
\;
mkdir
-p
"./swagger/
$1
"
cp
-r
./site/
*
"./swagger/
$1
/"
clean_cache
}
# usage
...
...
@@ -76,4 +79,6 @@ done
echo
"==================================================="
echo
"Moving default version
$APP_VERSION
docs to /"
cp
-r
./final/
${
APP_VERSION
}
/
*
./final/
echo
"Compress final documentation"
tar
czfv final.tar.gz ./final
echo
"==================================================="
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
4
−
5
View file @
b8701c24
...
...
@@ -470,7 +470,7 @@ stages:
# - python3 .docs/docker/release.py
docs-docs
:
stage
:
release
stage
:
docs
image
:
docker.io/python:3.11-slim
only
:
refs
:
...
...
@@ -480,12 +480,12 @@ docs-docs:
-
make docs
cache
:
paths
:
-
./final
-
./final
.tar.gz
artifacts
:
when
:
always
paths
:
-
./final
expire_in
:
1
days
-
./final
.tar.gz
expire_in
:
1
hour
release-images
:
stage
:
release
...
...
@@ -535,6 +535,5 @@ release-docs:
-
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
-
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'"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment