17 lines
683 B
YAML
17 lines
683 B
YAML
stages:
|
|
- deploy
|
|
|
|
deploy:
|
|
stage: deploy
|
|
tags:
|
|
- my.remarkbox.com
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH == "main"'
|
|
script:
|
|
# Install/upgrade the chaostheory theme package into the remarkbox venv
|
|
- /opt/remarkbox/env/bin/pip install --upgrade .
|
|
# Ensure static assets are symlinked into the Caddy-served path
|
|
- mkdir -p /opt/remarkbox/env/static/theme
|
|
- ln -sfn /opt/remarkbox/env/lib/python3.12/site-packages/remarkbox_chaostheory/static/theme/chaostheory /opt/remarkbox/env/static/theme/chaostheory
|
|
# Restart the foxhop.net uWSGI service to pick up the new templates/assets
|
|
- sudo systemctl restart foxhop.net
|