-
Notifications
You must be signed in to change notification settings - Fork 2
✨ feat: Add support for environment variables in deployment action #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
d76c630
d13c15e
af9936a
27de5f8
92c9192
7f49f36
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: plotly/de-deploy@v2 | ||
- uses: plotly/de-deploy@main | ||
with: | ||
DE_HOST: ${{ secrets.DE_HOST }} | ||
DE_USERNAME: ${{ secrets.DE_USERNAME }} | ||
|
@@ -55,6 +55,7 @@ The inputs this action uses are: | |
| `create_redis` | `false` | None | True to create a Redis instance for the app. | | ||
| `create_postgres` | `false` | None | True to create a Postgres instance for the app. | | ||
| `create_persistent_filesystem` | `false` | None | True to create a persistent filesystem for the app. | | ||
| `env_vars` | `false` | None | Environment variables to add. Separate multiple variables with a space. Example: `env_vars: "FOO=BAR FOO_SECRET=${{ secrets.FOO_SECRET }}"` | | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will this work without quotation marks? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With the current design, no. Without string, it would not be possible to split them. But er cam change it To make it more transparent/less error prone, we can do this:
Or
Or
(Note that | must be there) What do you think? |
||
|
||
### Preview deploy on pull request | ||
This action will deploy branches using the `on: pull_request: types: ['opened', 'edited', 'synchronize', 'closed']` trigger as `https://${DE_HOST}/${APP_NAME}-${event_number}`, e.g. if you are deploying an app called `inventory-analytics` to `example.plotly.host` and your PR number is `15`, the deploy preview would be available at `https://example.plotly.host/inventory-analytics-15` and would be redeployed on every new commit to that PR. | ||
|
Uh oh!
There was an error while loading. Please reload this page.