docs(requests): playtrek prod auto-deploy via Forgejo Actions #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "request/playtrek-prod-autodeploy"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
PlayTrek team request. The nextjs CF Worker has never auto-deployed: the Forgejo deploy gate used
gh(GitHub CLI) which can't read Forgejo (fixed PlayTrek-side, #43), and the wrangler step fails because the repo's Forgejo Actions secrets (CLOUDFLARE_API_TOKEN, FORGEGRAPH_TOKEN) are never provisioned.forge deploy create production --platform cloudflare-workers --target webdry-runs valid. Asking the platform team: should CI callforge deploydirectly (with a CI-scoped FORGEGRAPH_TOKEN) or report evidence + ForgeGraph orchestrates — and who provisions the Forgejo Actions secrets? Full detail in the doc.Update — wired evidence reporting (PlayTrek #46, merged) and it surfaced the real blocker: ForgeGraph has no changeset for the merge commit, so evidence resolution 404s.
PlayTrek now builds the worker and reports build evidence via the vendored
report-evidenceaction (main-only, per the staging→prod auto-promote warning). On the first run (merge commitd57b3efe) the build+evidence job failed.Diagnosis from the ForgeGraph side:
report.shresolves the changeset withGET /api/evidence/resolve?git_sha=<sha>&repository_id=<id>, butforge changeset listfor playtrek shows the most recent changeset isdc0d2736("updates", merged 2026-05-06) — none of the recent Forgejo PR-merges (all of this week's work) have changesets. So the resolve has nothing to match → 404 → evidence step fails.Platform question: PlayTrek merges via Forgejo PRs (git, not the jj/changeset flow). For the evidence→deploy model to work, either (a) ForgeGraph needs to auto-create a changeset on Forgejo push/merge to main, (b)
/api/evidence/resolveshould auto-create a changeset for an unseen SHA, or (c) PlayTrek must adopt theforge changeset/jj workflow. Which is intended? (Couldn't confirm the exact failing step — Forgejo Actions logs aren't API-reachable — but the missing changeset is the clear gap.)Interim: PlayTrek deploys manually (
pnpm -F nextjs deploy), prod is current + healthy.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.