Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
RagConnect
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
JastAdd
RagConnect
Commits
6c8d620c
Commit
6c8d620c
authored
3 years ago
by
René Schöne
Browse files
Options
Downloads
Patches
Plain Diff
use plain mkdocs instead of mike again
parent
dcb00e7e
Branches
Branches containing commit
No related tags found
1 merge request
!20
Hotfix - revert to plain mkdocs
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+32
-16
32 additions, 16 deletions
.gitlab-ci.yml
with
32 additions
and
16 deletions
.gitlab-ci.yml
+
32
−
16
View file @
6c8d620c
...
...
@@ -8,6 +8,7 @@ stages:
-
ragdoc_build
-
ragdoc_view
-
publish
-
docu-dev
before_script
:
-
export GRADLE_USER_HOME=`pwd`/.gradle
...
...
@@ -95,27 +96,42 @@ pages:
needs
:
-
ragdoc_view
-
test
variables
:
PAGES_BRANCH
:
pages
HTTPS_REMOTE
:
https://${PROJECT_BOT_USER}:${PROJECT_BOT_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git
before_script
:
-
apt update && apt install git-lfs
-
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
:
-
cd pages
-
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/
-
cd pages && mkdocs build
artifacts
:
paths
:
-
public/
only
:
-
dev
-
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
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