Skip to main content
func (workflowClient) DeployRelease(
    ctx context.Context,
    workflowSlug string,
    releaseID uuid.UUID,
    clusterSlugs []string,
) (*workflows.WorkflowReleaseDeployment, error)
Deploy a workflow release to one or more clusters.

Parameters

workflowSlug
string
required
The workflow slug.
releaseID
uuid.UUID
required
The ID of the workflow release to deploy.
clusterSlugs
[]string
required
The clusters to deploy the release to.

Returns

The deployment result, including the release and affected clusters.
deployment, err := client.Workflows.DeployRelease(ctx,
    workflow.Slug,
    release.ID,
    []string{"production"},
)