Repository navigation
Add Cloudflare CI/CD scripts and update Wrangler configuration - #100
Merged
Merged
Conversation
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.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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.
…docs into chore/gh-build-push
Deploying Preview to CloudflarePreview URL: https://chore-gh-build-push-docs.fossbilling.workers.dev/ (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`.
Contributor
There was a problem hiding this comment.
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
maindeploy to production.Workflow changes
cloudflare-events.ymlto keep preview PR comments in sync with CI completion and PR events, without cancelling earlier runs in the same concurrency group.ci.ymlin favor of the newci-cd.yml.Wrangler setup
wrangleras a dev dependency and thecf-deployandcf-previewnpm scripts.previewsblock inwrangler.jsonc.Written for commit 918f3ed. Summary will update on new commits.