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