web/website/ops
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-19 19:52:15 +01:00
..
forgejo Track the Forgejo cleanup navigation template and installation notes 2026-11-19 19:52:15 +01:00
oscommerce Build Dune shop catalogue and repair shared menu publication 2026-11-16 17:43:19 +00:00
apply-cp-v2-cutover.py Preserve the private integration API address through the active V2 backend 2026-11-13 01:13:04 +01:00
apply-git-embed-policy.py Restore embedded DuneGit SSO and move workspace controls below content 2026-11-13 00:34:55 +01:00
clan-center-index.html Remove duplicate Clan CP banner and keep one page scrollbar 2026-11-15 14:48:55 +01:00
clan-cp-shell.js Complete shared People, Rihla, security, event and Realm navigation batch 2026-11-18 13:05:47 +00:00
company-center-index.html Add Company CP, office decision menus and clan directory cards 2026-11-16 06:08:33 +01:00
company-cp-shell.js dev: prepare private organisation boards and scoped MyBB management 2026-11-16 19:16:59 +01:00
company-shell.css Add Company CP, office decision menus and clan directory cards 2026-11-16 06:08:33 +01:00
cp-v2-entry.nginx.conf DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
cp-v2-preview.nginx.conf DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
dunerealms-ci-promote-sync-cp.conf DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
dunerealms-cpv2-preview.path DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
dunerealms-cpv2-preview.service DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
dunerealms-kit-delivery.service Manage kit delivery worker across verified website promotions 2026-11-16 03:13:25 +01:00
dunerealms-news-delivery.service DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
dunerealms-release-retention.conf Keep production and two rollback releases after promotion 2026-11-14 21:42:55 +01:00
dunerealms-sync-promoted-cp DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
news-delivery-worker.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
promote-safe-v3.py Manage kit delivery worker across verified website promotions 2026-11-16 03:13:25 +01:00
prune-deployment-releases.py Allow full-size emblems and preserve safe web release retention 2026-11-18 02:08:53 +00:00
publish-cp-v2-preview.mjs Allow bounded CP expansion beyond fifty published assets 2026-11-14 16:24:24 +01:00
publish-system-board-repair.py fix(boards): run CLI provisioning from the approved release 2026-11-17 13:19:25 +00:00
README.md fix(ci): prune previous artifacts only after exact build is live 2026-11-17 12:23:11 +00:00
system-board-snapshot.mjs dev: prepare private organisation boards and scoped MyBB management 2026-11-16 19:16:59 +01:00
test-cp-v2-preview-nginx.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
test_promote_safe_v3.py Move web deployment to migrated host and volume-backed CI 2026-11-16 00:21:04 +01:00
test_publish_system_board_repair.py fix(boards): use the existing volume-backed promotion state 2026-11-17 13:09:40 +00:00

Migrated web deployment

The production website is hosted at 91.107.196.242. The Forgejo Actions workflow pins that host's SSH key and can trigger deployment only from main. Its deploy key is restricted to /usr/local/bin/dunerealms-ci-trigger, which rejects commits that do not match the current main branch.

Forgejo, repositories, artifact storage, the rootless runner, container data, build workspaces and deployment state use /mnt/HC_Volume_107481500/dunegit. Compatibility links preserve the existing application and home-directory paths. The volume is part of the live service and must remain attached. The services require its mount before starting, rather than writing to an empty mountpoint.

promote-safe-v3.py is installed as /usr/local/sbin/dunerealms-promote-safe-v3. It prepares an immutable release, checks a candidate website and panel, updates their shared nginx configuration, checks public readiness, and restores the previous routing if that check fails. Retired background workers are stopped and the active process list is saved.

The first successful promotion retires the migrated baseline systemd website services. Subsequent candidates are supervised by dunerealms-runtime.service. The separate Forgejo service remains dunegit.service.

Run the promoter routing checks with:

python3 -m unittest discover -s website/ops -p 'test_*.py'

CI artifact retention

Feature CI runs build and test without uploading the website artifact. Main publications keep their current artifact with a one-day expiry as a fallback. prune-ci-artifacts.mjs runs after the asynchronous deploy trigger and waits for /ci-build.json to report the exact CI commit. Only then can it remove older DuneRealms-Website artifacts belonging to completed runs. It preserves the current build, newer artifacts, running jobs, and all other artifact names. A changed live commit stops deletion. Failed or unconfirmed deployment leaves previous artifacts available. Cleanup errors are warnings and do not turn an already successful publication into a failed deployment.

Forgejo removes the corresponding physical chunks through its existing cleanup_actions maintenance task; deleting API records need not immediately increase free disk space. Deployed application releases and their rollback retention are separate from CI artifact retention. No backups or Git history are removed by this policy.