ci: Forgejo Actions runs the checks and MagicBeanAdmin/Release deploys main, CircleCI goes #24
No reviewers
Labels
No labels
ci: approved
ci: preview
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
preview
priority
critical
priority
high
priority
low
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Site!24
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Site:ci/site-deploy-from-release"
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?
Why: Site's deploy is CircleCI's, with the Cloudflare token in its
cloudflare-prodcontext, and the team is moving every deploy toMagicBeanAdmin/Release, whose runners and secrets belong to that repository alone and whose jobs run nothing of the source
beside the token. This takes CircleCI out of the picture, so the seal broker and CircleCI can both go.
Work in progress: do not merge yet. The order matters, see "Before merging".
What changes
.forgejo/workflows/ci.yml(new): lint (pre-commit on every file, and each commit's subject as a Conventional Commit) andtest (html-validate, the Matrix client file's JSON,
wrangler deploy --dry-run) on every pull request and push tomain,as CircleCI's
lintandtestran them (mise run lint,mise run test). No secrets. A fork's pull request waits for amaintainer's approval, which Forgejo asks for itself: that replaces
ci: approvedand the Site-forks project..circleci/,.chunk/, thecircleciCLI andconftestpins inmise.tomlandmise.lock, the orb'svalidatetask and themanual
circleci-validatehook go.docs/ci.md,README.mdandCONTRIBUTING.mddescribe the new flow.site.yml(MagicBeanAdmin/Release, branchwebsites: not on its main yet). Itstamps the version as CircleCI did (
YYYY.MM.DD.<run number>+<sha7>; the number is Release's run number now) and runswrangler deploywith Release's pinned Wrangler onwrangler.jsoncandpublic/only, as data, in a folder of its own: nothing ofthis repository runs beside the token, and a
wrangler.jsoncthat names another Worker or route, or abuildcommand, is refused.What is dropped, and the follow-up
ci: preview), its artifact preview and thedeploy markers (CircleCI's Deploys page) end here. There is no replacement in this pull request. Proposed follow-up: a
Release workflow
site-preview.ymllike Longshot's preview (release-trigger dispatches it from the pull request's webhook; ittakes only the pull request's
public/as files, bygit archive, beside main'swrangler.jsonc, and posts the link). Itneeds a new webhook and a bot token with
write:issue, so it is kept out of this change.Before merging (in this order)
websitesbranch is merged, and release-trigger (MagicBeanDev/Infra'swebsites-trigger) isdeployed with a webhook on this repository (push events), so a push to
mainstartssite.yml.CLOUDFLARE_API_TOKENandCLOUDFLARE_ACCOUNT_ID. Run Release's Site workflow by hand withpublish off (a dry run) and check it passes; the hourly and release-trigger's runs do nothing while
.circleci/config.ymlison
main, so nothing is deployed twice.ci/circleci: gateis a required check, replace it withCI / lintandCI / test, ornothing can merge.
.circleci/config.ymlis the switch: CircleCI builds nothing from then on, and release-trigger'srun of that push (five minutes later) deploys it. Then disable the CircleCI project (and Site-forks and the forge webhook to
it) and delete the
cloudflare-prodandforgejo-botcontexts.Testing
Run here:
npm ci,html-validateand the Matrix JSON check, andwrangler deploy --dry-runon this tree, all pass;actionlintonci.yml;mise.tomlandmise.lockparse andmise lslists the remaining pins. Not run:ci.ymlitself (it needsa Forgejo runner; it is the first run of
jdx/mise-actionhere), and the deploy (Release's tests cover its scripts against a made-upforge and a made-up Wrangler; nothing was sent to Cloudflare).
🤖 Generated with Claude Code
Possibly related, for context:
WIP: ci: Forgejo Actions runs the checks and MagicBeanAdmin/Release deploys main, CircleCI goesto ci: Forgejo Actions runs the checks and MagicBeanAdmin/Release deploys main, CircleCI goes