Add GitLab CI/CD: install package + symlink statics + restart foxhop.net
This commit is contained in:
parent
46a4737c14
commit
0047dd1ac1
1 changed files with 17 additions and 0 deletions
17
.gitlab-ci.yml
Normal file
17
.gitlab-ci.yml
Normal 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue