Skip to content

ci: auto-update to new Cloudhal releases and deploy via Workers Builds - #1

Closed
Madraka wants to merge 9 commits into
mainfrom
ci/auto-update
Closed

Madraka wants to merge 9 commits into
mainfrom
ci/auto-update

Conversation

@Madraka

@Madraka Madraka commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Keeps cloudhal.com on the latest Cloudhal release.

  1. Dependabot (daily, 06:00 Istanbul): one grouped PR for @cloudhal/*.
  2. Check (cloudhal-update.yml, every PR): pnpm install --frozen-lockfile, then WORKERS_CI=1 cloudhal deploy --dry-run bundles both Workers without deploying.
  3. Merge: Dependabot patch bumps merge automatically after the check; minor and major wait for a person.
  4. Deploy: Workers Builds (connected to cloudhal-com-site) runs pnpm run deploy on main.
  5. Post-deploy check: site and Studio must answer 200 within ~2 min, else both Workers roll back and the build fails.

wrangler.jsonc is now committed (names and ids only). Consequence: every CI deploy rotates the deployment token, so remote CLI commands from a laptop (push, pull, --remote) need a local deploy first.

🤖 Generated with Claude Code

Madraka and others added 9 commits October 20, 2026 10:45
…theme

Created with `cloudhal init` from the monorepo CLI. The theme grows the
blog starter (RFC-0018 boundary: routes and layout untouched) with five
block types (feature-grid, steps, pricing-table, link-cards, cta-band),
a hero override and one stylesheet on the site's color roles.

All copy is Cloudhal content: content/site.ts is seeded into the local
store by `pnpm seed` (pages by path, posts by slug, menus by key) and
published as a snapshot. Home, Features, Pricing and Blog, English only;
cloudhal.json sets the domain cloudhal.com, no deploy.

@cloudhal/* are linked from ../cloudhal-dev until they are on npm.
Friction found on the way is in docs/dogfooding-notes.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Madraka <[email protected]>
Bump wrangler to ^4.151.0 (the Cloudflare Vite plugin requires it), drop
the cloudhal.com custom domain until the zone is set up and a stable
release exists, ignore the generated wrangler.jsonc, and record the
deploy's friction in docs/dogfooding-notes.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Madraka <[email protected]>
…l.com

The site now installs @cloudhal/* 0.1.1 from npm instead of linking the
monorepo checkout (the site ships only from a stable release), and
cloudhal.json binds cloudhal.com as the site's custom domain. Studio
stays on workers.dev.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Madraka <[email protected]>
pnpm 12 holds back packages younger than its minimum release age; the
exclusions for @cloudhal/*@0.1.1 can go once the release is older than
that.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Madraka <[email protected]>
0.1.1 shipped a stale Studio build; 0.3.1 rebuilds it on every release.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Madraka <[email protected]>
Exempt every @cloudhal/* and create-cloudhal version from pnpm's
minimumReleaseAge, so future upgrades need no workspace edit.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Madraka <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Madraka <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Madraka <[email protected]>
- Dependabot opens one PR per Cloudhal release, bumping every @cloudhal/*
  package together.
- cloudhal-update.yml bundles both Workers in Workers Builds mode
  (cloudhal deploy --dry-run) on every PR, and merges Dependabot's
  patch bumps once that passes; minor and major bumps wait for a person.
- wrangler.jsonc is committed: Workers Builds reads the Worker, D1 and
  R2 names from it (no secrets in it).
- npm run deploy runs scripts/post-deploy-check.mjs after cloudhal
  deploy: if the site or Studio stops answering, both Workers are
  rolled back and the build fails.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Madraka <[email protected]>
@Madraka Madraka closed this Oct 21, 2026
@Madraka
Madraka deleted the ci/auto-update branch October 21, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant