Skip to content

Add Cloudflare CI/CD scripts and update Wrangler configuration - #100

Merged
admdly merged 13 commits into
mainfrom
chore/gh-build-push
Oct 29, 2026
Merged

admdly merged 13 commits into
mainfrom
chore/gh-build-push

Conversation

@admdly

@admdly admdly commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary by cubic

Replaces the CI-only workflow with a Cloudflare CI/CD pipeline that validates, builds, and deploys the Astro site to Cloudflare Workers. Branch pushes get a preview deployment with a PR comment; pushes to main deploy to production.

  • Workflow changes

    • Splits validation and build into separate jobs, with a dry-run Worker deployment check and an uploaded build artifact on push.
    • Adds cloudflare-events.yml to keep preview PR comments in sync with CI completion and PR events, without cancelling earlier runs in the same concurrency group.
    • Grants read access to repository contents on the deployment job. Retires the old ci.yml in favor of the new ci-cd.yml.
  • Wrangler setup

    • Adds wrangler as a dev dependency and the cf-deploy and cf-preview npm scripts.
    • Bumps the compatibility date to 2026-10-01, enables observability issues, and declares an empty previews block in wrangler.jsonc.

Written for commit 918f3ed. Summary will update on new commits.

Turn on auto-fix

admdly and others added 9 commits October 28, 2026 23:02
Add `cf-deploy` and `cf-preview` npm scripts wrapping Wrangler. Bump the Worker compatibility_date to 2026-10-01 and enable observability issues in wrangler.jsonc.
Replace ci.yml with a ci-cd.yml workflow that splits validation (format check, Astro checks) from the build, validates the Worker with a wrangler dry run, and uploads the build artifact on push.

Non-main branch pushes now deploy a Cloudflare preview with a PR comment, and pushes to main deploy to production, both via the shared FOSSBilling/.workflows reusable workflow.

Add cloudflare-events.yml to sync the preview PR comment on workflow completion and PR events.

Also add concurrency groups that cancel in-progress runs except on main.
Include the Cloudflare Wrangler CLI for project development and deployment workflows.
Update CI validation and deployment to use the root `wrangler.json` instead of the config under `dist/server`.
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Update validation and deployment workflow config paths to use `wrangler.jsonc`.
Pin preview and production deployments to the updated reusable workflow revision.
Add the `contents: read` permission to the Cloudflare Workers deployment job.
@admdly admdly self-assigned this Oct 28, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-10-29T00:00:38.625860Z 78e36c8 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Let Cloudflare event workflow runs proceed without canceling earlier runs in the same concurrency group.
@github-actions

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Deploying Preview to Cloudflare

Preview URL: https://chore-gh-build-push-docs.fossbilling.workers.dev/ (commit 918f3ed)

This URL reflects your latest successful Preview deployment.

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) Details
Build: Success ✅
Deployment: Success ✅
https://ff93e277-docs.fossbilling.workers.dev/ 918f3ed 2026-10-29T00:13:58.067Z View logs ↗
Build: Success ✅
Deployment: Failed ❌
— 1d9c77d 2026-10-29T00:07:25.623Z View logs ↗

Declare an empty `previews` block in `wrangler.jsonc`.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0 issues found across 1 file (changes from recent commits).

Requires human review: Adds Cloudflare CI/CD deployment for production and previews, plus Wrangler and workflow configuration changes. Requires human sign-off because it changes production deployment behavior and operational settings.

Turn on auto-fix | Re-trigger cubic

@admdly
admdly merged commit 3bb46f0 into main Oct 29, 2026
21 checks passed
@admdly
admdly deleted the chore/gh-build-push branch October 29, 2026 00:16
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