web/website/ops
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-24 20:41:34 +01:00
..
forgejo Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
oscommerce Compact the native shop collections and load their product artwork 2026-11-24 20:41:34 +01:00
apply-cp-v2-cutover.py Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
apply-git-embed-policy.py Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
board-key-status.mjs Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
clan-center-index.html Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
clan-cp-shell.js Project client clan management and political authority from current deeds 2026-11-22 12:52:19 +01:00
company-center-index.html Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
company-cp-shell.js Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
company-shell.css Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
cp-v2-entry.nginx.conf Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
cp-v2-preview.nginx.conf Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
delegate-board-control.mjs Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
DMPAINT.md Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
dunegui-download-location.conf Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
dunerealms-build-release Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
dunerealms-ci-promote-sync-cp.conf Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
dunerealms-ci-trigger Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
dunerealms-cpv2-preview.path Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
dunerealms-cpv2-preview.service Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
dunerealms-kit-delivery.service Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
dunerealms-news-delivery.service Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
dunerealms-release-retention.conf Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
dunerealms-staging-build-lock.conf Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
dunerealms-staging-retention.conf Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
dunerealms-sync-promoted-cp Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
home-relocation-bank-access.py Connect paid Home Block relocation and native cleanup receipts; count settled quest income 2026-11-23 06:30:26 +01:00
LOCAL-MAIL.md Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
mail-broker-settings.example.json Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
news-delivery-worker.mjs Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
prepare-alpha-reset.mjs Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
promote-safe-v3.py Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
provision-smuggler-institutions.mjs Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
prune-deployment-releases.py Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
prune-staging-builds.py Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
publish-board-key-runtime.py Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
publish-cp-v2-preview.mjs Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
publish-system-board-repair.py Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
README.md Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
run-economy-reset.mjs Enable audited economy reset and Federal Reserve daily policy 2026-11-24 07:42:08 +01:00
settle-reset-loans.mjs Settle legacy loans and restart Reserve counters for the economic period 2026-11-24 07:58:37 +01:00
STAGING-RETENTION.md Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
system-board-snapshot.mjs Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
test-cp-v2-preview-nginx.mjs Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
test_jarvis_dev_form_publisher.py Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
test_promote_safe_v3.py Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
test_publish_system_board_repair.py Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01:00
test_staging_retention.py Restore files omitted by sparse release checkout 2026-11-21 20:22:37 +01: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.