Skip to content
Snippets Groups Projects
Commit bcf5d9a2 authored by Vojdan Kjorveziroski's avatar Vojdan Kjorveziroski
Browse files

Merge branch '1-configure-ci' into 'master'

Resolve "Configure CI"

Closes #1

See merge request nmaas/nmaas-docs!1
parents f5cd6a4e 8c16444f
No related branches found
No related tags found
1 merge request!1Resolve "Configure CI"
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment