You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci: nightly deploy of dev to the main internal instance #2985
Nightly GitHub Actions workflow that deploys origin/dev to our main internal instance at 04:00 UTC. Same pattern as deploy-dev.yml: Tailscale, then SSH, pull, build, up -d, and assertions.
Why GitHub Actions
Reuses what deploy-dev.yml already proves out: concurrency lock, --no-recurse-submodules, the stale-enterprise check, the enterprise registration grep, and the last-deployed-SHA skip.
A red run auto-files an issue. A host crontab fails silently.
The workflow file is reviewed and versioned. A crontab on the VM is not.
Risks
Arms only on main.schedule runs from the default branch, so nothing fires until the next release cut.
Secret exposure. The prod SSH key sits in a public repo's secrets. Anyone with write access could exfiltrate it from a branch workflow. Mitigation: a production environment restricted to main (needs a repo admin).
No auto-rollback. A bad dev commit leaves the instance broken until someone acts.
In-flight executions are killed on backend recreate. Mitigation: skip the night if any execution started in the last 3h is still running.
Manual-only steps (new required .env vars, docs/migrations/, agent rebuilds) are not handled. The run goes red instead.
Activity
ci: nightly deploy of dev to the main internal instance (#2985)
test(2814): record deploy-prod-nightly triggers as accepted until rel…
ci(deploy-prod): address #2986 review — fail-closed health/backup, de…
ci(deploy-prod): POSIX dump gate, count-only error output, script test (
ci(deploy-prod): fail loudly when the in-flight query fails; widen du…
obasilakis commentedon Oct 6, 2026
Tracked in the private repo from here (trinity-enterprise#786); nothing in this repo will close it on merge.