@bambamboole/coolify 0.4.2 → 0.6.0

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 (89) hide show
  1. package/README.md +1 -1
  2. package/application.d.ts +258 -16
  3. package/application.d.ts.map +1 -0
  4. package/application.js +37 -9
  5. package/application.js.map +1 -0
  6. package/config/index.d.ts.map +1 -1
  7. package/config/index.js.map +1 -1
  8. package/config/vars.d.ts +4 -4
  9. package/config/vars.d.ts.map +1 -1
  10. package/config/vars.js +3 -2
  11. package/config/vars.js.map +1 -1
  12. package/database.d.ts +95 -17
  13. package/database.d.ts.map +1 -0
  14. package/database.js +17 -15
  15. package/database.js.map +1 -0
  16. package/databaseBackup.d.ts +166 -0
  17. package/databaseBackup.d.ts.map +1 -0
  18. package/databaseBackup.js +117 -0
  19. package/databaseBackup.js.map +1 -0
  20. package/deployment.d.ts +32 -3
  21. package/deployment.d.ts.map +1 -0
  22. package/deployment.js +3 -1
  23. package/deployment.js.map +1 -0
  24. package/gitHubApp.d.ts +146 -0
  25. package/gitHubApp.d.ts.map +1 -0
  26. package/gitHubApp.js +127 -0
  27. package/gitHubApp.js.map +1 -0
  28. package/index.d.ts +15 -1
  29. package/index.d.ts.map +1 -0
  30. package/index.js +24 -1
  31. package/index.js.map +1 -0
  32. package/package.json +4 -17
  33. package/privateKey.d.ts +27 -4
  34. package/privateKey.d.ts.map +1 -0
  35. package/privateKey.js +6 -1
  36. package/privateKey.js.map +1 -0
  37. package/project.d.ts +13 -4
  38. package/project.d.ts.map +1 -0
  39. package/project.js +1 -1
  40. package/project.js.map +1 -0
  41. package/provider.d.ts +7 -7
  42. package/provider.d.ts.map +1 -0
  43. package/provider.js +2 -5
  44. package/provider.js.map +1 -0
  45. package/s3storage.d.ts +46 -5
  46. package/s3storage.d.ts.map +1 -0
  47. package/s3storage.js +5 -1
  48. package/s3storage.js.map +1 -0
  49. package/scheduledTask.d.ts +94 -0
  50. package/scheduledTask.d.ts.map +1 -0
  51. package/scheduledTask.js +105 -0
  52. package/scheduledTask.js.map +1 -0
  53. package/server.d.ts +39 -3
  54. package/server.d.ts.map +1 -0
  55. package/server.js +3 -3
  56. package/server.js.map +1 -0
  57. package/service.d.ts +130 -0
  58. package/service.d.ts.map +1 -0
  59. package/service.js +110 -0
  60. package/service.js.map +1 -0
  61. package/types/enums/index.d.ts +59 -0
  62. package/types/enums/index.d.ts.map +1 -0
  63. package/types/enums/index.js +62 -0
  64. package/types/enums/index.js.map +1 -0
  65. package/types/index.d.ts +5 -0
  66. package/types/index.d.ts.map +1 -0
  67. package/types/index.js +36 -0
  68. package/types/index.js.map +1 -0
  69. package/types/input.d.ts +2 -0
  70. package/types/input.d.ts.map +1 -0
  71. package/{config/index.ts → types/input.js} +3 -3
  72. package/types/input.js.map +1 -0
  73. package/types/output.d.ts +2 -0
  74. package/types/output.d.ts.map +1 -0
  75. package/types/output.js +5 -0
  76. package/types/output.js.map +1 -0
  77. package/utilities.d.ts.map +1 -0
  78. package/utilities.js.map +1 -0
  79. package/application.ts +0 -181
  80. package/config/vars.ts +0 -31
  81. package/database.ts +0 -146
  82. package/deployment.ts +0 -100
  83. package/index.ts +0 -88
  84. package/privateKey.ts +0 -85
  85. package/project.ts +0 -90
  86. package/provider.ts +0 -70
  87. package/s3storage.ts +0 -114
  88. package/server.ts +0 -99
  89. package/utilities.ts +0 -96
package/README.md CHANGED
@@ -1 +1 @@
1
- Manage resources on a Coolify instance: projects, databases, private keys, servers, S3 storage, applications and deployments.
1
+ Manage resources on a Coolify instance: projects, databases and their backups, private keys, GitHub Apps, servers, S3 storage, applications, services, scheduled tasks and deployments.
package/application.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ import * as enums from "./types/enums";
2
3
  /**
3
- * A Coolify application built from a git repository, a Docker image, or a Dockerfile.
4
+ * A Coolify application built from a git repository, a Docker image, or a Dockerfile. An existing application with the same name in the environment is adopted on create.
4
5
  */
5
6
  export declare class Application extends pulumi.CustomResource {
6
7
  /**
@@ -17,27 +18,163 @@ export declare class Application extends pulumi.CustomResource {
17
18
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
18
19
  */
19
20
  static isInstance(obj: any): obj is Application;
20
- readonly autoDeployEnabled: pulumi.Output<boolean>;
21
- readonly buildPack: pulumi.Output<string>;
22
- readonly description: pulumi.Output<string>;
23
- readonly environment: pulumi.Output<string>;
21
+ /**
22
+ * Deploy automatically on git push.
23
+ */
24
+ readonly autoDeployEnabled: pulumi.Output<boolean | undefined>;
25
+ /**
26
+ * Directory inside the repository to build from.
27
+ */
28
+ readonly baseDirectory: pulumi.Output<string | undefined>;
29
+ /**
30
+ * Build command override.
31
+ */
32
+ readonly buildCommand: pulumi.Output<string | undefined>;
33
+ /**
34
+ * Build pack for git sources: nixpacks, railpack, static, dockerfile or dockercompose.
35
+ */
36
+ readonly buildPack: pulumi.Output<string | undefined>;
37
+ /**
38
+ * Description of the application.
39
+ */
40
+ readonly description: pulumi.Output<string | undefined>;
41
+ /**
42
+ * Image name for docker-image sources.
43
+ */
44
+ readonly dockerRegistryImageName: pulumi.Output<string | undefined>;
45
+ /**
46
+ * Image tag for docker-image sources. Defaults to latest.
47
+ */
48
+ readonly dockerRegistryImageTag: pulumi.Output<string | undefined>;
49
+ /**
50
+ * Dockerfile content for dockerfile sources.
51
+ */
52
+ readonly dockerfile: pulumi.Output<string | undefined>;
53
+ /**
54
+ * Location of the Dockerfile inside the repository.
55
+ */
56
+ readonly dockerfileLocation: pulumi.Output<string | undefined>;
57
+ /**
58
+ * Comma separated domains the application is served on.
59
+ */
60
+ readonly domains: pulumi.Output<string | undefined>;
61
+ /**
62
+ * Name of the environment inside the project. Changing it moves the resource in place; the environment must already exist.
63
+ */
64
+ readonly environmentName: pulumi.Output<string>;
65
+ /**
66
+ * Environment variables managed by key. Declared keys missing in Coolify are created as hidden values; existing keys are never patched and undeclared keys are left untouched.
67
+ */
24
68
  readonly environmentVariables: pulumi.Output<{
25
69
  [key: string]: string;
26
- }>;
70
+ } | undefined>;
71
+ /**
72
+ * Redirect HTTP to HTTPS.
73
+ */
74
+ readonly forceHttpsEnabled: pulumi.Output<boolean | undefined>;
27
75
  /**
28
- * The FQDN Coolify exposes the application at.
76
+ * FQDN Coolify serves the application on.
29
77
  */
30
78
  readonly fqdn: pulumi.Output<string>;
31
- readonly gitBranch: pulumi.Output<string>;
32
- readonly gitRepository: pulumi.Output<string>;
33
- readonly name: pulumi.Output<string>;
34
- readonly project: pulumi.Output<string>;
79
+ /**
80
+ * Git branch to deploy for git sources.
81
+ */
82
+ readonly gitBranch: pulumi.Output<string | undefined>;
83
+ /**
84
+ * Git commit SHA to deploy. Defaults to the branch head.
85
+ */
86
+ readonly gitCommitSha: pulumi.Output<string | undefined>;
87
+ /**
88
+ * Git repository URL for git sources.
89
+ */
90
+ readonly gitRepository: pulumi.Output<string | undefined>;
91
+ /**
92
+ * UUID of the Coolify GitHub App for private-github-app sources. Changing it replaces the application.
93
+ */
94
+ readonly githubAppUuid: pulumi.Output<string | undefined>;
95
+ /**
96
+ * Enable the container health check.
97
+ */
98
+ readonly healthCheckEnabled: pulumi.Output<boolean | undefined>;
99
+ /**
100
+ * Health check HTTP method.
101
+ */
102
+ readonly healthCheckMethod: pulumi.Output<string | undefined>;
103
+ /**
104
+ * Health check path.
105
+ */
106
+ readonly healthCheckPath: pulumi.Output<string | undefined>;
107
+ /**
108
+ * Health check port.
109
+ */
110
+ readonly healthCheckPort: pulumi.Output<string | undefined>;
111
+ /**
112
+ * Install command override.
113
+ */
114
+ readonly installCommand: pulumi.Output<string | undefined>;
115
+ /**
116
+ * Deploy right after creating the application. Only relevant on create.
117
+ */
118
+ readonly instantDeploy: pulumi.Output<boolean | undefined>;
119
+ /**
120
+ * CPU limit, e.g. "0.5".
121
+ */
122
+ readonly limitsCPUs: pulumi.Output<string | undefined>;
123
+ /**
124
+ * Memory limit, e.g. "512m".
125
+ */
126
+ readonly limitsMemory: pulumi.Output<string | undefined>;
127
+ /**
128
+ * Application name. Defaults to the Pulumi resource name. An existing application with this name in the environment is adopted.
129
+ */
130
+ readonly name: pulumi.Output<string | undefined>;
131
+ /**
132
+ * Port the container exposes.
133
+ */
134
+ readonly portsExposes: pulumi.Output<string | undefined>;
135
+ /**
136
+ * Host to container port mappings.
137
+ */
138
+ readonly portsMappings: pulumi.Output<string | undefined>;
139
+ /**
140
+ * Deploy previews for pull requests.
141
+ */
142
+ readonly previewDeploymentsEnabled: pulumi.Output<boolean | undefined>;
143
+ /**
144
+ * UUID of the Coolify private key for private-deploy-key sources. Changing it replaces the application.
145
+ */
146
+ readonly privateKeyUuid: pulumi.Output<string | undefined>;
147
+ /**
148
+ * UUID of the Coolify project (the uuid output of a Project resource). Changing it moves the resource to the new project in place.
149
+ */
150
+ readonly projectUuid: pulumi.Output<string>;
151
+ /**
152
+ * Directory with the build output for static sites.
153
+ */
154
+ readonly publishDirectory: pulumi.Output<string | undefined>;
155
+ /**
156
+ * UUID of the server hosting the application (the uuid output of a Server resource).
157
+ */
35
158
  readonly serverUuid: pulumi.Output<string>;
36
- readonly source: pulumi.Output<string>;
159
+ /**
160
+ * Where the application is built from.
161
+ */
162
+ readonly source: pulumi.Output<enums.ApplicationSource>;
163
+ /**
164
+ * Start command override.
165
+ */
166
+ readonly startCommand: pulumi.Output<string | undefined>;
37
167
  /**
38
168
  * Status reported by Coolify.
39
169
  */
40
170
  readonly status: pulumi.Output<string>;
171
+ /**
172
+ * Tags assigned on create. Only relevant on create.
173
+ */
174
+ readonly tags: pulumi.Output<string[] | undefined>;
175
+ /**
176
+ * UUID of the application in Coolify.
177
+ */
41
178
  readonly uuid: pulumi.Output<string>;
42
179
  /**
43
180
  * Create a Application resource with the given unique name, arguments, and options.
@@ -52,46 +189,151 @@ export declare class Application extends pulumi.CustomResource {
52
189
  * The set of arguments for constructing a Application resource.
53
190
  */
54
191
  export interface ApplicationArgs {
192
+ /**
193
+ * Deploy automatically on git push.
194
+ */
55
195
  autoDeployEnabled?: pulumi.Input<boolean | undefined>;
196
+ /**
197
+ * Directory inside the repository to build from.
198
+ */
56
199
  baseDirectory?: pulumi.Input<string | undefined>;
200
+ /**
201
+ * Build command override.
202
+ */
57
203
  buildCommand?: pulumi.Input<string | undefined>;
204
+ /**
205
+ * Build pack for git sources: nixpacks, railpack, static, dockerfile or dockercompose.
206
+ */
58
207
  buildPack?: pulumi.Input<string | undefined>;
208
+ /**
209
+ * Description of the application.
210
+ */
59
211
  description?: pulumi.Input<string | undefined>;
212
+ /**
213
+ * Image name for docker-image sources.
214
+ */
60
215
  dockerRegistryImageName?: pulumi.Input<string | undefined>;
216
+ /**
217
+ * Image tag for docker-image sources. Defaults to latest.
218
+ */
61
219
  dockerRegistryImageTag?: pulumi.Input<string | undefined>;
220
+ /**
221
+ * Dockerfile content for dockerfile sources.
222
+ */
62
223
  dockerfile?: pulumi.Input<string | undefined>;
224
+ /**
225
+ * Location of the Dockerfile inside the repository.
226
+ */
63
227
  dockerfileLocation?: pulumi.Input<string | undefined>;
228
+ /**
229
+ * Comma separated domains the application is served on.
230
+ */
64
231
  domains?: pulumi.Input<string | undefined>;
65
- environment: pulumi.Input<string>;
66
232
  /**
67
- * Environment variables applied to the application. Declared keys missing on the Coolify side are created as hidden values; existing keys are never patched and undeclared keys are left untouched.
233
+ * Name of the environment inside the project. Changing it moves the resource in place; the environment must already exist.
234
+ */
235
+ environmentName: pulumi.Input<string>;
236
+ /**
237
+ * Environment variables managed by key. Declared keys missing in Coolify are created as hidden values; existing keys are never patched and undeclared keys are left untouched.
68
238
  */
69
239
  environmentVariables?: pulumi.Input<{
70
240
  [key: string]: pulumi.Input<string>;
71
241
  } | undefined>;
242
+ /**
243
+ * Redirect HTTP to HTTPS.
244
+ */
72
245
  forceHttpsEnabled?: pulumi.Input<boolean | undefined>;
246
+ /**
247
+ * Git branch to deploy for git sources.
248
+ */
73
249
  gitBranch?: pulumi.Input<string | undefined>;
250
+ /**
251
+ * Git commit SHA to deploy. Defaults to the branch head.
252
+ */
74
253
  gitCommitSha?: pulumi.Input<string | undefined>;
254
+ /**
255
+ * Git repository URL for git sources.
256
+ */
75
257
  gitRepository?: pulumi.Input<string | undefined>;
258
+ /**
259
+ * UUID of the Coolify GitHub App for private-github-app sources. Changing it replaces the application.
260
+ */
76
261
  githubAppUuid?: pulumi.Input<string | undefined>;
262
+ /**
263
+ * Enable the container health check.
264
+ */
77
265
  healthCheckEnabled?: pulumi.Input<boolean | undefined>;
266
+ /**
267
+ * Health check HTTP method.
268
+ */
78
269
  healthCheckMethod?: pulumi.Input<string | undefined>;
270
+ /**
271
+ * Health check path.
272
+ */
79
273
  healthCheckPath?: pulumi.Input<string | undefined>;
274
+ /**
275
+ * Health check port.
276
+ */
80
277
  healthCheckPort?: pulumi.Input<string | undefined>;
278
+ /**
279
+ * Install command override.
280
+ */
81
281
  installCommand?: pulumi.Input<string | undefined>;
282
+ /**
283
+ * Deploy right after creating the application. Only relevant on create.
284
+ */
82
285
  instantDeploy?: pulumi.Input<boolean | undefined>;
286
+ /**
287
+ * CPU limit, e.g. "0.5".
288
+ */
83
289
  limitsCPUs?: pulumi.Input<string | undefined>;
290
+ /**
291
+ * Memory limit, e.g. "512m".
292
+ */
84
293
  limitsMemory?: pulumi.Input<string | undefined>;
294
+ /**
295
+ * Application name. Defaults to the Pulumi resource name. An existing application with this name in the environment is adopted.
296
+ */
85
297
  name?: pulumi.Input<string | undefined>;
298
+ /**
299
+ * Port the container exposes.
300
+ */
86
301
  portsExposes?: pulumi.Input<string | undefined>;
302
+ /**
303
+ * Host to container port mappings.
304
+ */
87
305
  portsMappings?: pulumi.Input<string | undefined>;
306
+ /**
307
+ * Deploy previews for pull requests.
308
+ */
88
309
  previewDeploymentsEnabled?: pulumi.Input<boolean | undefined>;
310
+ /**
311
+ * UUID of the Coolify private key for private-deploy-key sources. Changing it replaces the application.
312
+ */
89
313
  privateKeyUuid?: pulumi.Input<string | undefined>;
90
- project: pulumi.Input<string>;
314
+ /**
315
+ * UUID of the Coolify project (the uuid output of a Project resource). Changing it moves the resource to the new project in place.
316
+ */
317
+ projectUuid: pulumi.Input<string>;
318
+ /**
319
+ * Directory with the build output for static sites.
320
+ */
91
321
  publishDirectory?: pulumi.Input<string | undefined>;
322
+ /**
323
+ * UUID of the server hosting the application (the uuid output of a Server resource).
324
+ */
92
325
  serverUuid: pulumi.Input<string>;
93
- source?: pulumi.Input<string | undefined>;
326
+ /**
327
+ * Where the application is built from.
328
+ */
329
+ source: pulumi.Input<enums.ApplicationSource>;
330
+ /**
331
+ * Start command override.
332
+ */
94
333
  startCommand?: pulumi.Input<string | undefined>;
334
+ /**
335
+ * Tags assigned on create. Only relevant on create.
336
+ */
95
337
  tags?: pulumi.Input<pulumi.Input<string>[] | undefined>;
96
338
  }
97
339
  //# sourceMappingURL=application.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../application.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC,OAAO,KAAK,KAAK,MAAM,eAAe,CAAC;AAGvC;;GAEG;AACH,qBAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;OAOG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,WAAW;IAO9G;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,WAAW;IAOtD;;OAEG;IACH,SAAwB,iBAAiB,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAC9E;;OAEG;IACH,SAAwB,aAAa,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACzE;;OAEG;IACH,SAAwB,YAAY,EAAE,MAAM,CAAC,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C,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAC9D;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAClD;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAClC;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACpD;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IAC9C;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAChD;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;CAC3D"}
package/application.js CHANGED
@@ -29,7 +29,7 @@ exports.Application = void 0;
29
29
  const pulumi = __importStar(require("@pulumi/pulumi"));
30
30
  const utilities = __importStar(require("./utilities"));
31
31
  /**
32
- * A Coolify application built from a git repository, a Docker image, or a Dockerfile.
32
+ * A Coolify application built from a git repository, a Docker image, or a Dockerfile. An existing application with the same name in the environment is adopted on create.
33
33
  */
34
34
  class Application extends pulumi.CustomResource {
35
35
  /**
@@ -66,15 +66,18 @@ class Application extends pulumi.CustomResource {
66
66
  let resourceInputs = {};
67
67
  opts = opts || {};
68
68
  if (!opts.id) {
69
- if (args?.environment === undefined && !opts.urn) {
70
- throw new Error("Missing required property 'environment'");
69
+ if (args?.environmentName === undefined && !opts.urn) {
70
+ throw new Error("Missing required property 'environmentName'");
71
71
  }
72
- if (args?.project === undefined && !opts.urn) {
73
- throw new Error("Missing required property 'project'");
72
+ if (args?.projectUuid === undefined && !opts.urn) {
73
+ throw new Error("Missing required property 'projectUuid'");
74
74
  }
75
75
  if (args?.serverUuid === undefined && !opts.urn) {
76
76
  throw new Error("Missing required property 'serverUuid'");
77
77
  }
78
+ if (args?.source === undefined && !opts.urn) {
79
+ throw new Error("Missing required property 'source'");
80
+ }
78
81
  resourceInputs["autoDeployEnabled"] = args?.autoDeployEnabled;
79
82
  resourceInputs["baseDirectory"] = args?.baseDirectory;
80
83
  resourceInputs["buildCommand"] = args?.buildCommand;
@@ -85,7 +88,7 @@ class Application extends pulumi.CustomResource {
85
88
  resourceInputs["dockerfile"] = args?.dockerfile;
86
89
  resourceInputs["dockerfileLocation"] = args?.dockerfileLocation;
87
90
  resourceInputs["domains"] = args?.domains;
88
- resourceInputs["environment"] = args?.environment;
91
+ resourceInputs["environmentName"] = args?.environmentName;
89
92
  resourceInputs["environmentVariables"] = args?.environmentVariables;
90
93
  resourceInputs["forceHttpsEnabled"] = args?.forceHttpsEnabled;
91
94
  resourceInputs["gitBranch"] = args?.gitBranch;
@@ -105,7 +108,7 @@ class Application extends pulumi.CustomResource {
105
108
  resourceInputs["portsMappings"] = args?.portsMappings;
106
109
  resourceInputs["previewDeploymentsEnabled"] = args?.previewDeploymentsEnabled;
107
110
  resourceInputs["privateKeyUuid"] = args?.privateKeyUuid;
108
- resourceInputs["project"] = args?.project;
111
+ resourceInputs["projectUuid"] = args?.projectUuid;
109
112
  resourceInputs["publishDirectory"] = args?.publishDirectory;
110
113
  resourceInputs["serverUuid"] = args?.serverUuid;
111
114
  resourceInputs["source"] = args?.source;
@@ -117,18 +120,43 @@ class Application extends pulumi.CustomResource {
117
120
  }
118
121
  else {
119
122
  resourceInputs["autoDeployEnabled"] = undefined /*out*/;
123
+ resourceInputs["baseDirectory"] = undefined /*out*/;
124
+ resourceInputs["buildCommand"] = undefined /*out*/;
120
125
  resourceInputs["buildPack"] = undefined /*out*/;
121
126
  resourceInputs["description"] = undefined /*out*/;
122
- resourceInputs["environment"] = undefined /*out*/;
127
+ resourceInputs["dockerRegistryImageName"] = undefined /*out*/;
128
+ resourceInputs["dockerRegistryImageTag"] = undefined /*out*/;
129
+ resourceInputs["dockerfile"] = undefined /*out*/;
130
+ resourceInputs["dockerfileLocation"] = undefined /*out*/;
131
+ resourceInputs["domains"] = undefined /*out*/;
132
+ resourceInputs["environmentName"] = undefined /*out*/;
123
133
  resourceInputs["environmentVariables"] = undefined /*out*/;
134
+ resourceInputs["forceHttpsEnabled"] = undefined /*out*/;
124
135
  resourceInputs["fqdn"] = undefined /*out*/;
125
136
  resourceInputs["gitBranch"] = undefined /*out*/;
137
+ resourceInputs["gitCommitSha"] = undefined /*out*/;
126
138
  resourceInputs["gitRepository"] = undefined /*out*/;
139
+ resourceInputs["githubAppUuid"] = undefined /*out*/;
140
+ resourceInputs["healthCheckEnabled"] = undefined /*out*/;
141
+ resourceInputs["healthCheckMethod"] = undefined /*out*/;
142
+ resourceInputs["healthCheckPath"] = undefined /*out*/;
143
+ resourceInputs["healthCheckPort"] = undefined /*out*/;
144
+ resourceInputs["installCommand"] = undefined /*out*/;
145
+ resourceInputs["instantDeploy"] = undefined /*out*/;
146
+ resourceInputs["limitsCPUs"] = undefined /*out*/;
147
+ resourceInputs["limitsMemory"] = undefined /*out*/;
127
148
  resourceInputs["name"] = undefined /*out*/;
128
- resourceInputs["project"] = undefined /*out*/;
149
+ resourceInputs["portsExposes"] = undefined /*out*/;
150
+ resourceInputs["portsMappings"] = undefined /*out*/;
151
+ resourceInputs["previewDeploymentsEnabled"] = undefined /*out*/;
152
+ resourceInputs["privateKeyUuid"] = undefined /*out*/;
153
+ resourceInputs["projectUuid"] = undefined /*out*/;
154
+ resourceInputs["publishDirectory"] = undefined /*out*/;
129
155
  resourceInputs["serverUuid"] = undefined /*out*/;
130
156
  resourceInputs["source"] = undefined /*out*/;
157
+ resourceInputs["startCommand"] = undefined /*out*/;
131
158
  resourceInputs["status"] = undefined /*out*/;
159
+ resourceInputs["tags"] = undefined /*out*/;
132
160
  resourceInputs["uuid"] = undefined /*out*/;
133
161
  }
134
162
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"application.js","sourceRoot":"","sources":["../application.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAIzC,uDAAyC;AAEzC;;GAEG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,WAAW,CAAC,IAAI,EAAE,SAAgB,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACxE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,2BAA2B,CAAC;IAElE;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;IA+JD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAqB,EAAE,IAAmC;QAChF,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACV,IAAI,IAAI,EAAE,eAAe,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAClD,MAAM,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAC;aAClE;YACD,IAAI,IAAI,EAAE,WAAW,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC9C,M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cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACnD,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AAjSL,kCAkSC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../config/index.ts"],"names":[],"mappings":"AAIA,cAAc,QAAQ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;AAEjF,kBAAkB;AAClB,yCAAuB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../config/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;AAEjF,kBAAkB;AAClB,yCAAuB"}
package/config/vars.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * Coolify read/write API token (Coolify > Security > API tokens).
2
+ * Coolify read/write API token (Coolify > Security > API tokens). Defaults to the COOLIFY_API_TOKEN environment variable.
3
3
  */
4
- export declare const apiToken: string | undefined;
4
+ export declare const apiToken: string;
5
5
  /**
6
- * Base URL of the Coolify instance, without the API path (e.g. https://coolify.example.com).
6
+ * Base URL of the Coolify instance without the API path, e.g. https://coolify.example.com. Defaults to the COOLIFY_BASE_URL environment variable.
7
7
  */
8
- export declare const baseUrl: string | undefined;
8
+ export declare const baseUrl: string;
9
9
  //# sourceMappingURL=vars.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"vars.d.ts","sourceRoot":"","sources":["vars.ts"],"names":[],"mappings":"AASA;;GAEG;AACH,MAAM,CAAC,OAAO,CAAC,MAAM,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;AAQlD;;GAEG;AACH,MAAM,CAAC,OAAO,CAAC,MAAM,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC"}
1
+ {"version":3,"file":"vars.d.ts","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":"AASA;;GAEG;AACH,MAAM,CAAC,OAAO,CAAC,MAAM,QAAQ,EAAE,MAAM,CAAC;AAQtC;;GAEG;AACH,MAAM,CAAC,OAAO,CAAC,MAAM,OAAO,EAAE,MAAM,CAAC"}
package/config/vars.js CHANGED
@@ -26,16 +26,17 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
28
  const pulumi = __importStar(require("@pulumi/pulumi"));
29
+ const utilities = __importStar(require("../utilities"));
29
30
  const __config = new pulumi.Config("coolify");
30
31
  Object.defineProperty(exports, "apiToken", {
31
32
  get() {
32
- return __config.get("apiToken");
33
+ return __config.get("apiToken") ?? (utilities.getEnv("COOLIFY_API_TOKEN") || "");
33
34
  },
34
35
  enumerable: true,
35
36
  });
36
37
  Object.defineProperty(exports, "baseUrl", {
37
38
  get() {
38
- return __config.get("baseUrl");
39
+ return __config.get("baseUrl") ?? (utilities.getEnv("COOLIFY_BASE_URL") || "");
39
40
  },
40
41
  enumerable: true,
41
42
  });
@@ -1 +1 @@
1
- {"version":3,"file":"vars.js","sourceRoot":"","sources":["vars.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAIzC,MAAM,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