Add GitLab CI/CD: install package + symlink statics + restart foxhop.net

This commit is contained in:
russell@unturf.com 2026-04-08 17:25:54 -04:00
parent 46a4737c14
commit 0047dd1ac1

17
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,17 @@
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