Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
ICARTT Python Package
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
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
MBEES
ICARTT Python Package
Commits
ec21b3b7
Commit
ec21b3b7
authored
2 years ago
by
Robin Kara
Committed by
Robin Kara
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
documentation upload: use masked variable to export base64 encoded secret key to docker env
parent
500c6bf9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!23
Upload generated documentation to our webserver
Pipeline
#149
passed
2 years ago
Stage: build_package
Stage: testing
Stage: create_docs
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+13
-0
13 additions, 0 deletions
.gitlab-ci.yml
with
13 additions
and
0 deletions
.gitlab-ci.yml
+
13
−
0
View file @
ec21b3b7
...
...
@@ -27,10 +27,23 @@ test:
create_docs
:
stage
:
create_docs
needs
:
[
test
]
variables
:
docs_upload_host
:
hosted-024-173.rz.uni-augsburg.de
docs_path_component
:
icartt
script
:
-
poetry install
-
cd docs
-
poetry run sphinx-build -b html . ../public
# Following lines are ssh-agent setup and key injection, to allow upload of docs
-
'
command
-v
ssh-agent
>/dev/null
||
(
apt-get
update
-y
&&
apt-get
install
openssh-client
-y
)'
-
'
command
-v
rsync
>/dev/null
||
(
apt-get
update
-y
&&
apt-get
install
--no-install-recommends
rsync
-y
)'
-
eval $(ssh-agent -s)
# Encode with cat <key> | base64 -w0, then configure variable as admin in Gitlab Web UI
# Use the mbees.docs.user state via pillar to create users and ssh config on our docs web server
-
echo "$docs_ssh_key" | tr -d ' ' | base64 --decode | ssh-add -
-
mkdir -p ~/.ssh && chmod 700 ~/.ssh
-
ssh-keyscan ${docs_upload_host} > ~/.ssh/known_hosts
-
rsync -ax ../public/ ${CI_PROJECT_NAME}-docs@${docs_upload_host}:/srv/docs/${docs_path_component}/public/$(poetry version -s)/
artifacts
:
paths
:
-
public
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