Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
developer-documentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cta-computing
documentation
developer-documentation
Commits
5394e656
Commit
5394e656
authored
1 month ago
by
Maximilian Linhoff
Browse files
Options
Downloads
Patches
Plain Diff
Add preview link
parent
99938d33
No related branches found
Branches containing commit
No related tags found
1 merge request
!30
Add section on coverage performance issue
Pipeline
#61769
passed
1 month ago
Stage: check
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+20
-0
20 additions, 0 deletions
.gitlab-ci.yml
with
20 additions
and
0 deletions
.gitlab-ci.yml
+
20
−
0
View file @
5394e656
...
...
@@ -32,11 +32,31 @@ build:
script
:
-
poetry run make html
# for some reason, we need to insert an additional /-/ between base url and the project path for this to work
-
echo "BUILD_JOB_ID=${CI_JOB_ID}" >> deploy.env
-
echo "ENVIRONMENT_URL=${CI_PAGES_URL}" | sed -e "s|$CI_PAGES_DOMAIN|${CI_PAGES_DOMAIN}/-|" >> deploy.env
artifacts
:
paths
:
-
build/html
expose_as
:
"
Rendered
Documentation"
reports
:
dotenv
:
deploy.env
deploy-mr-preview
:
stage
:
deploy
rules
:
-
if
:
$CI_PIPELINE_SOURCE == "merge_request_event"
needs
:
-
job
:
build
artifacts
:
true
script
:
-
echo "Using ${ENVIRONMENT_URL} to host documentation"
environment
:
name
:
"
review-docs-mr-${CI_MERGE_REQUEST_IID}"
url
:
${ENVIRONMENT_URL}/-/jobs/${BUILD_JOB_ID}/artifacts/build/html/index.html
# actual deployment to gitlab pages, only on main
...
...
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