deploy.static.publish ​
Publish frontend/static build artifacts through Deploy without using SPAD.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Dag |
| Library | App-deployments |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | Organization UUID. |
deployment_target_uuid | uuid | Yes | — | Deployment target UUID. |
release_uuid | uuid | Yes | — | DeploymentRelease UUID. |
connection_uuid | uuid | Yes | — | Storage/GCP connection UUID. |
provider | string | Yes | — | Storage provider; gcp for this path. |
project_id | string | No | — | GCP project override. |
bucket | string | Yes | — | Destination bucket. |
prefix | string | No | — | Destination prefix. |
bundle_ref | string | No | — | Static artifact bundle URI. |
manifest | list | Yes | — | Static files to publish. |
delete_stale | boolean | No | — | Delete stale objects under prefix. |
domain_binding | json | No | — | Optional domain bind request. |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | No | — | Echoed organization UUID. |
deployment_target_uuid | uuid | No | — | Target UUID. |
release_uuid | uuid | No | — | Release UUID. |
workflow_run_uuid | string | No | — | Engine-stamped DAG run id. |
connection_uuid | uuid | No | — | Storage/GCP connection UUID (carried through). |
provider | string | No | — | Storage provider (carried through). |
project_id | string | No | — | GCP project (carried through). |
bundle_ref | string | No | — | Static artifact bundle URI (carried through). |
manifest | list | No | — | Static files to publish (carried through). |
delete_stale | boolean | No | — | Delete stale objects under prefix (carried through). |
domain_binding | json | No | — | Optional domain bind request (carried through). |
bucket | string | No | — | Destination bucket. |
prefix | string | No | — | Destination prefix. |
uploaded_count | integer | No | — | Objects uploaded. |
deleted_stale_count | integer | No | — | Stale objects deleted. |
static_url | string | No | — | Provider static URL or bound domain. |
domain_result | json | No | — | Domain bind result. |
upload_static_bundle | json | No | — | Result of upload_static_bundle DAG step. |
bind_static_domain | json | No | — | Result of bind_static_domain DAG step. |
failure_reason | string | No | — | Engine failure reason. |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_step | json | No | — | Failed DAG step envelope. |
failed_layer | json | No | — | Failed DAG layer envelope. |
failed_at_state | string | No | — | State where failure occurred. |
error | string | No | — | Error message. |
error_type | string | No | — | Error class. |
DAG Layers ​
| # | Layer | Steps | Compensation |
|---|---|---|---|
| 1 | upload_bundle | storage.bundle.upload | — |
| 2 | bind_domain | deploy.domain.bind | — |
Execution Flow ​
Sub-workflows ​
| Sub-workflow | Step name |
|---|---|
storage.bundle.upload | upload_static_bundle |
deploy.domain.bind | bind_static_domain |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "deploy.static.publish",
"initial_data": {
"organization_uuid": "value",
"deployment_target_uuid": "value",
"release_uuid": "value",
"connection_uuid": "value"
}
}