From 0047dd1ac1d0b53faff664794dfbc2f18282eb0e Mon Sep 17 00:00:00 2001 From: "russell@unturf.com" Date: Wed, 8 Apr 2026 17:25:54 -0400 Subject: [PATCH] Add GitLab CI/CD: install package + symlink statics + restart foxhop.net --- .gitlab-ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..aa389cf --- /dev/null +++ b/.gitlab-ci.yml @@ -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