Repository navigation
Deploy with Workers Builds using void deploy --platform cloudflare - #1045
Draft
TheAlexLichter wants to merge 28 commits into
Draft
TheAlexLichter wants to merge 28 commits into
TheAlexLichter wants to merge 28 commits into
Conversation
…ers Builds branch builds
… the CLI reference
… Builds placeholder
…Builds placeholder
|
Cloudflare builds and deploys previews for this pull request. Learn more about Cloudflare previews.
Updated: |
Member
|
I made some fixes, please feel free to take it back and polish until it's ready. |
…eprecate the string version-message argument
Member
Author
|
Note: splitting this up into two PRs (stacked) for easier review. |
This branch has not been deployed
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
With this PR, a Void app can now deploy from Workers Builds (Cloudflare's GitHub/GitLab integration). The only setting to change is the deploy command (but we can send a PR to detect that internally I guess!):
npx void deploy --platform cloudflareVoid detects Workers Builds and runs without prompts. It checks that it is deploying the Worker the build is connected to, and checks the token before building. It then reports the deployed version back, so the build page links to it.
Notes
cfpublish call only. That would put the path in a process Void doesn't control, andcfwould report the name-override state itself. Writing from the parent keeps the scrubbing intact and lets Void setworker_tagfrom its own confirmed check.void.config.tsdescribes. Deploying a second Worker from one build would create versions Builds can't link to the build.