Bridge what Dokploy v0.30 added, and let the docs through
build / build (push) Failing after 11m22s
release / plugin (push) Failing after 31m35s
release / sdks (push) Has been skipped

Six new resources from terraform-provider-dokploy v0.2.0 -- Network,
DnsProvider, VaultProvider, Schedule, VolumeBackup and Libsql -- plus the new
properties on Domain (`enabled`), Compose (`serviceNetworks`, `createEnvFile`,
`icon`) and Application. Verified with `pulumi up` against a live v0.30.2
instance: create, preview-clean, and destroy.

The upstream provider also now refuses a volume Mount with no `volumeName`,
which Dokploy would otherwise turn into an anonymous Docker volume recreated
on every deploy. That surfaces here at preview time, before anything exists.

Two things made that fix nearly invisible to Pulumi users, so this commit
fixes the second one: the bridge resolves the upstream `docs/` through the Go
module cache, where a locally `replace`d dependency never lands, so tfgen was
emitting every resource with no description at all. UpstreamRepoPath now
points at the checkout and all 445 inputs carry documentation -- with names
rendered per language, so Python readers see `volume_name` where TypeScript
readers see `volumeName`.
This commit is contained in:
max-voitcov
2026-08-26 00:46:32 +03:00
parent ad3e908c98
commit 73386ba0ff
137 changed files with 19660 additions and 5183 deletions
+35
View File
@@ -12,6 +12,11 @@ import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// A Dokploy application: a single service built from a Git repository, a Docker image, or an uploaded artifact.
//
// Dokploy's `application.create` endpoint accepts only a handful of fields, so this resource creates the application and then applies the rest of the configuration through `application.update`.
//
// > Creating this resource does **not** deploy the application. Trigger a deployment from the Dokploy UI, the CLI, or a `terraformData` provisioner calling `application.deploy`.
type Application struct {
pulumi.CustomResourceState
@@ -121,6 +126,8 @@ type Application struct {
HealthCheckSwarm pulumi.StringPtrOutput `pulumi:"healthCheckSwarm"`
// Heroku buildpack stack version.
HerokuVersion pulumi.StringOutput `pulumi:"herokuVersion"`
// Icon shown next to the service in the Dokploy UI.
Icon pulumi.StringPtrOutput `pulumi:"icon"`
// Build a preview deployment for each pull request.
IsPreviewDeploymentsActive pulumi.BoolOutput `pulumi:"isPreviewDeploymentsActive"`
// Serve a static build as a single-page application.
@@ -165,6 +172,8 @@ type Application struct {
PreviewPath pulumi.StringOutput `pulumi:"previewPath"`
// Container port exposed by preview deployments.
PreviewPort pulumi.IntOutput `pulumi:"previewPort"`
// Only build previews for pull requests opened by users with repository collaborator permissions.
PreviewRequireCollaboratorPermissions pulumi.BoolOutput `pulumi:"previewRequireCollaboratorPermissions"`
// Wildcard domain used to expose preview deployments.
PreviewWildcard pulumi.StringPtrOutput `pulumi:"previewWildcard"`
// Directory served when `buildType` is `static`.
@@ -363,6 +372,8 @@ type applicationState struct {
HealthCheckSwarm *string `pulumi:"healthCheckSwarm"`
// Heroku buildpack stack version.
HerokuVersion *string `pulumi:"herokuVersion"`
// Icon shown next to the service in the Dokploy UI.
Icon *string `pulumi:"icon"`
// Build a preview deployment for each pull request.
IsPreviewDeploymentsActive *bool `pulumi:"isPreviewDeploymentsActive"`
// Serve a static build as a single-page application.
@@ -407,6 +418,8 @@ type applicationState struct {
PreviewPath *string `pulumi:"previewPath"`
// Container port exposed by preview deployments.
PreviewPort *int `pulumi:"previewPort"`
// Only build previews for pull requests opened by users with repository collaborator permissions.
PreviewRequireCollaboratorPermissions *bool `pulumi:"previewRequireCollaboratorPermissions"`
// Wildcard domain used to expose preview deployments.
PreviewWildcard *string `pulumi:"previewWildcard"`
// Directory served when `buildType` is `static`.
@@ -558,6 +571,8 @@ type ApplicationState struct {
HealthCheckSwarm pulumi.StringPtrInput
// Heroku buildpack stack version.
HerokuVersion pulumi.StringPtrInput
// Icon shown next to the service in the Dokploy UI.
Icon pulumi.StringPtrInput
// Build a preview deployment for each pull request.
IsPreviewDeploymentsActive pulumi.BoolPtrInput
// Serve a static build as a single-page application.
@@ -602,6 +617,8 @@ type ApplicationState struct {
PreviewPath pulumi.StringPtrInput
// Container port exposed by preview deployments.
PreviewPort pulumi.IntPtrInput
// Only build previews for pull requests opened by users with repository collaborator permissions.
PreviewRequireCollaboratorPermissions pulumi.BoolPtrInput
// Wildcard domain used to expose preview deployments.
PreviewWildcard pulumi.StringPtrInput
// Directory served when `buildType` is `static`.
@@ -753,6 +770,8 @@ type applicationArgs struct {
HealthCheckSwarm *string `pulumi:"healthCheckSwarm"`
// Heroku buildpack stack version.
HerokuVersion *string `pulumi:"herokuVersion"`
// Icon shown next to the service in the Dokploy UI.
Icon *string `pulumi:"icon"`
// Build a preview deployment for each pull request.
IsPreviewDeploymentsActive *bool `pulumi:"isPreviewDeploymentsActive"`
// Serve a static build as a single-page application.
@@ -797,6 +816,8 @@ type applicationArgs struct {
PreviewPath *string `pulumi:"previewPath"`
// Container port exposed by preview deployments.
PreviewPort *int `pulumi:"previewPort"`
// Only build previews for pull requests opened by users with repository collaborator permissions.
PreviewRequireCollaboratorPermissions *bool `pulumi:"previewRequireCollaboratorPermissions"`
// Wildcard domain used to expose preview deployments.
PreviewWildcard *string `pulumi:"previewWildcard"`
// Directory served when `buildType` is `static`.
@@ -945,6 +966,8 @@ type ApplicationArgs struct {
HealthCheckSwarm pulumi.StringPtrInput
// Heroku buildpack stack version.
HerokuVersion pulumi.StringPtrInput
// Icon shown next to the service in the Dokploy UI.
Icon pulumi.StringPtrInput
// Build a preview deployment for each pull request.
IsPreviewDeploymentsActive pulumi.BoolPtrInput
// Serve a static build as a single-page application.
@@ -989,6 +1012,8 @@ type ApplicationArgs struct {
PreviewPath pulumi.StringPtrInput
// Container port exposed by preview deployments.
PreviewPort pulumi.IntPtrInput
// Only build previews for pull requests opened by users with repository collaborator permissions.
PreviewRequireCollaboratorPermissions pulumi.BoolPtrInput
// Wildcard domain used to expose preview deployments.
PreviewWildcard pulumi.StringPtrInput
// Directory served when `buildType` is `static`.
@@ -1385,6 +1410,11 @@ func (o ApplicationOutput) HerokuVersion() pulumi.StringOutput {
return o.ApplyT(func(v *Application) pulumi.StringOutput { return v.HerokuVersion }).(pulumi.StringOutput)
}
// Icon shown next to the service in the Dokploy UI.
func (o ApplicationOutput) Icon() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Application) pulumi.StringPtrOutput { return v.Icon }).(pulumi.StringPtrOutput)
}
// Build a preview deployment for each pull request.
func (o ApplicationOutput) IsPreviewDeploymentsActive() pulumi.BoolOutput {
return o.ApplyT(func(v *Application) pulumi.BoolOutput { return v.IsPreviewDeploymentsActive }).(pulumi.BoolOutput)
@@ -1495,6 +1525,11 @@ func (o ApplicationOutput) PreviewPort() pulumi.IntOutput {
return o.ApplyT(func(v *Application) pulumi.IntOutput { return v.PreviewPort }).(pulumi.IntOutput)
}
// Only build previews for pull requests opened by users with repository collaborator permissions.
func (o ApplicationOutput) PreviewRequireCollaboratorPermissions() pulumi.BoolOutput {
return o.ApplyT(func(v *Application) pulumi.BoolOutput { return v.PreviewRequireCollaboratorPermissions }).(pulumi.BoolOutput)
}
// Wildcard domain used to expose preview deployments.
func (o ApplicationOutput) PreviewWildcard() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Application) pulumi.StringPtrOutput { return v.PreviewWildcard }).(pulumi.StringPtrOutput)