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
Zero-downtime deployments with included configuration:
209
-
210
-
```bash
211
-
kamal deploy
213
+
### App Settings Secrets
214
+
215
+
Instead of polluting each GitHub Reposity 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:
This project includes GitHub Actions for CI/CD with automatic Docker image builds and production [deployment with Kamal](https://docs.servicestack.net/kamal-deploy). The `/config/deploy.yml` configuration is designed to be reusable across projects—it dynamically derives service names, image paths, and volume mounts from environment variables, so you only need to configure your server's IP and hostname using GitHub Action secrets.
268
+
269
+
### GitHub Action Secrets
270
+
271
+
**Required - App Specific*:
272
+
273
+
The only secret needed to be configured per Repository.
274
+
275
+
| Variable | Example | Description |
276
+
|----------|---------|-------------|
277
+
|`KAMAL_DEPLOY_HOST`|`example.org`| Hostname used for SSL certificate and Kamal proxy |
278
+
279
+
**Required** (Organization Secrets):
280
+
281
+
Other Required variables can be globally configured in your GitHub Organization or User secrets which will
282
+
enable deploying all your Repositories to the same server.
283
+
284
+
| Variable | Example | Description |
285
+
|----------|----------|-------------|
286
+
|`KAMAL_DEPLOY_IP`|`100.100.100.100`| IP address of the server to deploy to |
287
+
|`SSH_PRIVATE_KEY`|`ssh-rsa ...`| SSH private key to access the server |
288
+
|`LETSENCRYPT_EMAIL`|`[email protected]`| Email for Let's Encrypt SSL certificate |
These are inferred from the GitHub Action context and don't need to be configured.
298
+
299
+
| Variable | Source | Description |
300
+
|----------|--------|-------------|
301
+
|`GITHUB_REPOSITORY`|`${{ github.repository }}`| e.g. `acme/example.org` - used for service name and image |
302
+
|`KAMAL_REGISTRY_USERNAME`|`${{ github.actor }}`| GitHub username for container registry |
303
+
|`KAMAL_REGISTRY_PASSWORD`|`${{ secrets.GITHUB_TOKEN }}`| GitHub token for container registry auth |
304
+
305
+
#### Features
306
+
307
+
-**Docker containerization** with optimized .NET images
308
+
-**SSL auto-certification** via Let's Encrypt
309
+
-**GitHub Container Registry** integration
310
+
-**Volume persistence** for App_Data including any SQLite database
311
+
312
+
240
313
## AutoQuery CRUD Dev Workflow
241
314
242
315
For Rapid Development simple [TypeScript Data Models](https://docs.servicestack.net/autoquery/okai-models) can be used to generate C# AutoQuery APIs and DB Migrations.
0 commit comments