Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nmaas Documentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Container registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nmaas
Documentation
nmaas Documentation
Commits
8c16444f
Commit
8c16444f
authored
1 year ago
by
Vojdan Kjorveziroski
Browse files
Options
Downloads
Patches
Plain Diff
Resolve "Configure CI"
parent
f5cd6a4e
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1
Resolve "Configure CI"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+36
-0
36 additions, 0 deletions
.gitlab-ci.yml
with
36 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
36
−
0
View file @
8c16444f
stages
:
-
build
-
publish
build_website
:
stage
:
build
image
:
python:3.9-bookworm
before_script
:
-
pip install -r requirements.txt
script
:
-
mkdocs build --strict
artifacts
:
paths
:
-
"
site/"
expire_in
:
"
30
minutes"
rules
:
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
# Run for all changes to the default branch
copy_static_files
:
stage
:
publish
image
:
instrumentisto/rsync-ssh:alpine
# image: python:3.9-bookworm
before_script
:
-
eval $(ssh-agent -s)
-
chmod 400 "$SSH_PRIVATE_KEY"
-
ssh-add "$SSH_PRIVATE_KEY"
-
mkdir -p ~/.ssh
-
chmod 700 ~/.ssh
-
cp "$SSH_KNOWN_HOSTS" ~/.ssh/known_hosts
-
chmod 644 ~/.ssh/known_hosts
script
:
-
rsync -ah --delete --progress site/ $SSH_HOST:/
dependencies
:
-
"
build_website"
rules
:
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
# Run for all changes to the default branch
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