Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
JastAdd
RagConnect
Commits
810b5945
Commit
810b5945
authored
Nov 24, 2021
by
René Schöne
Browse files
Merge branch 'hotfix/revert-to-plain-mkdocs' into 'master'
Hotfix - revert to plain mkdocs See merge request
!20
parents
dcb00e7e
6c8d620c
Pipeline
#11958
passed with stages
in 9 minutes and 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
810b5945
...
@@ -8,6 +8,7 @@ stages:
...
@@ -8,6 +8,7 @@ stages:
-
ragdoc_build
-
ragdoc_build
-
ragdoc_view
-
ragdoc_view
-
publish
-
publish
-
docu-dev
before_script
:
before_script
:
-
export GRADLE_USER_HOME=`pwd`/.gradle
-
export GRADLE_USER_HOME=`pwd`/.gradle
...
@@ -95,27 +96,42 @@ pages:
...
@@ -95,27 +96,42 @@ pages:
needs
:
needs
:
-
ragdoc_view
-
ragdoc_view
-
test
-
test
variables
:
PAGES_BRANCH
:
pages
HTTPS_REMOTE
:
https://${PROJECT_BOT_USER}:${PROJECT_BOT_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git
before_script
:
before_script
:
-
apt update && apt install git-lfs
-
pip install -r pages/requirements.txt
-
pip install -r pages/requirements.txt
-
git config user.name $PROJECT_BOT_USER
-
git config user.email $PROJECT_BOT_USER@git-st.inf.tu-dresden.de
-
git fetch -f origin $PAGES_BRANCH:$PAGES_BRANCH || echo "Pages branch not deployed yet."
-
git checkout $CI_COMMIT_SHA
script
:
script
:
-
cd pages
-
cd pages && mkdocs build
-
export VERSION=$(python main.py)
-
echo $VERSION
-
mike list --json --prefix public -r $HTTPS_REMOTE -b $PAGES_BRANCH
-
mike deploy --rebase --prefix public -r $HTTPS_REMOTE -p -b $PAGES_BRANCH --update-aliases $VERSION
-
cd ..
-
git checkout $PAGES_BRANCH -- public/
artifacts
:
artifacts
:
paths
:
paths
:
-
public/
-
public/
only
:
only
:
-
dev
-
master
-
master
pages-dev
:
image
:
python:3.10.0-bullseye
stage
:
publish
needs
:
-
ragdoc_view
-
test
before_script
:
-
pip install -r pages/requirements.txt
script
:
-
cd pages && mkdocs build
-
echo "UPSTREAM_JOB_ID=$CI_JOB_ID" >> build.env
artifacts
:
paths
:
-
public/
reports
:
dotenv
:
build.env
only
:
-
dev
downstream-job
:
stage
:
docu-dev
variables
:
UPSTREAM_BRANCH
:
$CI_COMMIT_REF_NAME
trigger
:
jastadd/ragconnect-dev
needs
:
-
job
:
pages-dev
artifacts
:
true
only
:
-
dev
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment