aspire2coolify 2.0.20 → 2.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +49 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -136,6 +136,11 @@ aspire2coolify deploy ./AppHost/Program.cs \
136
136
  | `--environment-name <name>` | Environment name (default: `production`) |
137
137
  | `--instant-deploy` | Deploy resources immediately after creation |
138
138
  | `--dry-run` | Preview deployment without executing |
139
+ | `--github-repo <url>` | GitHub repository URL for applications |
140
+ | `--github-branch <branch>` | GitHub branch to deploy (default: `main`) |
141
+ | `--github-base-path <path>` | Base path within the GitHub repository |
142
+ | `--github-app-uuid <uuid>` | GitHub App UUID for private repositories |
143
+ | `--build-pack <type>` | Build pack: `nixpacks`, `dockerfile`, `static`, `dockercompose` |
139
144
 
140
145
  ### Init Command
141
146
 
@@ -145,6 +150,38 @@ Create a configuration file:
145
150
  aspire2coolify init
146
151
  ```
147
152
 
153
+ ### GitHub Source Deployment
154
+
155
+ Deploy applications directly from a GitHub repository instead of creating Docker image placeholders.
156
+
157
+ #### Public Repository
158
+
159
+ ```bash
160
+ aspire2coolify deploy ./AppHost/Program.cs \
161
+ --server-id srv-456 \
162
+ --github-repo https://github.com/your-org/your-repo \
163
+ --github-branch main \
164
+ --github-base-path /AppSvelteKit
165
+ ```
166
+
167
+ #### Private Repository (with GitHub App)
168
+
169
+ For private repositories, you need to configure a GitHub App in Coolify first:
170
+
171
+ 1. Go to your Coolify instance > **Sources** > **Add GitHub App**
172
+ 2. Complete the GitHub App setup
173
+ 3. Copy the GitHub App UUID from the Sources page
174
+
175
+ ```bash
176
+ aspire2coolify deploy ./AppHost/Program.cs \
177
+ --server-id srv-456 \
178
+ --github-repo https://github.com/your-org/your-private-repo \
179
+ --github-branch main \
180
+ --github-app-uuid your-github-app-uuid
181
+ ```
182
+
183
+ The `--github-base-path` option is combined with the application's `sourcePath` (from `AddNpmApp("name", "../path")`) to determine the correct directory in the repository.
184
+
148
185
  ## Example
149
186
 
150
187
  ### Input (Program.cs)
@@ -256,8 +293,16 @@ export default {
256
293
  projectName: 'My App', // Optional - name for auto-created project
257
294
  environmentName: 'production', // Optional - defaults to 'production'
258
295
  },
296
+ // GitHub source configuration (optional)
297
+ // When set, applications are deployed from GitHub instead of Docker image placeholders
298
+ github: {
299
+ repository: 'https://github.com/your-org/your-repo',
300
+ branch: 'main',
301
+ basePath: '/AppSvelteKit', // Optional - base path within the repository
302
+ appUuid: 'your-github-app-uuid', // Optional - required for private repositories
303
+ },
259
304
  defaults: {
260
- buildPack: 'nixpacks',
305
+ buildPack: 'nixpacks', // 'nixpacks' | 'dockerfile' | 'static' | 'dockercompose'
261
306
  },
262
307
  output: {
263
308
  includeComments: true,
@@ -334,7 +379,9 @@ This tool uses the [Coolify REST API](https://coolify.io/docs/api-reference/api/
334
379
  | MongoDB | `POST /api/v1/databases/mongodb` |
335
380
  | Redis | `POST /api/v1/databases/redis` |
336
381
  | Services | `POST /api/v1/services` |
337
- | Applications | `POST /api/v1/applications/dockerimage` |
382
+ | Applications (Docker) | `POST /api/v1/applications/dockerimage` |
383
+ | Applications (Public Git) | `POST /api/v1/applications/public` |
384
+ | Applications (Private GitHub) | `POST /api/v1/applications/private-github-app` |
338
385
 
339
386
  ## Development
340
387
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aspire2coolify",
3
- "version": "2.0.20",
3
+ "version": "2.0.21",
4
4
  "description": "CLI tool to convert .NET Aspire configurations to Coolify CLI commands",
5
5
  "type": "module",
6
6
  "main": "dist/cli/index.js",