You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of polluting each GitHub Repository with multiple App-specific GitHub Action Secrets, you can save all your secrets in a single `APPSETTINGS_PATCH` GitHub Action Secret to patch `appsettings.json` with environment-specific configuration using [JSON Patch](https://jsonpatch.com). E.g:
48
+
Instead of polluting each GitHub Repository with multiple App-specific GitHub Action Secrets, you can save all your secrets in a single `APPSETTINGS_JSON` GitHub Action Secret which will get written inside the Docker container `appsettings.Production.json`, e.g:
After changing `appsettings.Production.json` update your `APPSETTINGS_JSON` GitHub Action Secret with:
70
+
71
+
```bash
72
+
npm run secret:prod
73
+
```
74
+
75
+
This uses the GitHub CLI to add your `appsettings.Production.json` to your GitHub repository's Action secrets:
76
+
77
+
```bash
78
+
gh secret set APPSETTINGS_JSON < appsettings.Production.json
70
79
```
71
80
81
+
72
82
### SMTP Email
73
83
74
84
Enable email sending by uncommenting in `Program.cs`:
@@ -95,38 +105,37 @@ npx add-in db-identity
95
105
96
106
### App Settings Secrets
97
107
98
-
You could register any App-specific secrets here, although our preference is instead of polluting each
99
-
GitHub Repository with multiple App-specific GitHub Action Secrets, you can save all your secrets in a single
100
-
`APPSETTINGS_PATCH` GitHub Action Secret to patch `appsettings.json` with environment-specific configuration
101
-
using [JSON Patch](https://jsonpatch.com). E.g:
108
+
You could register any App-specific secrets here, although our preference is to instead save all your secrets in a single `APPSETTINGS_JSON` GitHub Action Secret which will get written inside the Docker container `appsettings.Production.json`, e.g:
Copy file name to clipboardExpand all lines: content/docs/deployments.mdx
+52-27Lines changed: 52 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,40 +57,65 @@ The only secret that needs to be configured per App is:
57
57
gh secret set KAMAL_DEPLOY_HOST <www.example.org>
58
58
```
59
59
60
-
You could register any App-specific secrets here, although our preference is instead of polluting each
61
-
GitHub Repository with multiple App-specific GitHub Action Secrets, you can save all your secrets in a single
62
-
`APPSETTINGS_PATCH` GitHub Action Secret to patch `appsettings.json` with environment-specific configuration
63
-
using [JSON Patch](https://jsonpatch.com). E.g:
60
+
### App Settings Secrets
61
+
62
+
You could register any App-specific secrets here, although our preference is to instead save all your secrets in a single `APPSETTINGS_JSON` GitHub Action Secret which will get written inside the Docker container `appsettings.Production.json`, e.g:
0 commit comments