Add label-gated Cloudflare preview deployments - #107
Draft
joaomarcoscrs wants to merge 1 commit into
Draft
Conversation
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.
Description
Adds opt-in Cloudflare Pages previews without placing Cloudflare credentials or private infrastructure details in the public repository.
A maintainer-applied
cloudflare-previewlabel creates or updates a syntheticpreview/pr-<number>branch at the exact pull request head. Cloudflare builds only those branches, reports a native check run, and a second workflow updates one sticky pull request comment with the stable preview URL or failure details. Removing the label or closing the pull request deletes the synthetic branch.The workflows never check out pull request code and receive no Cloudflare secrets. The 134 MB horse-trail video is excluded from the Pages artifact and resolved from the public R2 origin owned by roboflow/roboflow-infra#2542. Production remains on GitHub Pages.
Type of Change
Validation
Tests added or updated where behavior changed
Documentation updated where the public API or workflow changed
Screenshots or recording attached for visual changes
npm run verifypassed, including 845 Vitest tests, package smoke tests, package boundaries, all package builds, demo, and benchmark builds.npm run pages:buildpassed. The deployed artifact excludes the 134 MB horse video and contains no file above Cloudflare Pages' 25 MiB limit.actionlintpassed for both new workflows.git diff --checkpassed.Notes For Reviewers
This remains a draft until the private infrastructure PR is applied, the horse-trail object is uploaded to R2, and the
cloudflare-previewlabel is created. The new workflows must be present on the default branch before they can be exercised end to end on a later pull request.