Skip to content

ci: nightly deploy of dev to the main internal instance #2985

Closed

Description

@obasilakis

What

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

  1. added
    priority-p2
    type-feature
    theme-infrastructure
    status-ready
    on Sep 23, 2026
  2. added
    status-in-progress
    complexity-medium
    and removed
    status-ready
    on Sep 27, 2026
  3. obasilakis commented on Oct 6, 2026

    @obasilakis
    ContributorAuthor

    Tracked in the private repo from here (trinity-enterprise#786); nothing in this repo will close it on merge.

  4. removed
    status-in-progress
    on Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    complexity-mediumpriority-p2theme-infrastructuretype-feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions