one click deployments - #2316
Merged
Merged
Conversation
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.
Note: now also supports one-click deployments for Functions.
This PR adds one-click deployments for Appwrite Sites. It works as follows:
Drawbacks
Parameters accepted
Base URL: /console/deploy
repo: the GitHub repository URL to deployenv: environment variable keys, comma separated, example,TEST1,TEST2. User will fill the values.preset: if nothing provided, it will be Next.js, or else user can providesveltekit,vue,react,astro,vite. Default settings will be automatically appliedinstall: custom installation command, in case repository has custom needsbuild: custom build commandoutput: custom output directoryscreenshot: screenshot URL for repo modeScreenshots
When the link is visited:
Regular deployment flow
Functions
Just added this features. Following is the base URL
https://[URL]/console/functions/deployDrawbacks
Same as sites, need to have a release tag for now
Following are URL search params
repo- GitHub repository URLruntime- Runtime ID (e.g., node-18.0, python-3.11, php-8.3, etc.)env- Comma-separated environment variable keys (e.g., API_KEY,DATABASE_URL)name- Function name overrideentrypoint- Entry file to execute (e.g., index.js, main.py, app.php)install- Install/build command (e.g., npm install, pip install -r requirements.txt)rootDir- Root directory path (default: ./)Summary by CodeRabbit
New Features
Bug Fixes