apphost.image.build ​
Schedule an Azure Container Registry task for a public GitHub source and poll until the image is pushed. No customer cloud connection.
Build a container image on platform ACR from an inspected git source.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-apphost |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
site_uuid | uuid | Yes | — | — |
source_location | string | Yes | — | — |
strategy | string | Yes | — | — |
sha | string | Yes | — | — |
dockerfile | string | No | — | — |
generated_dockerfile | string | No | — | — |
clone_url | string | No | — | — |
git_url | string | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
site_uuid | uuid | No | — | — |
organization_uuid | uuid | No | — | — |
slug | string | No | — | — |
source_location | string | No | — | — |
strategy | string | No | — | — |
sha | string | No | — | — |
dockerfile | string | No | — | — |
generated_dockerfile | string | No | — | — |
clone_url | string | No | — | — |
git_url | string | No | — | — |
image | string | No | — | — |
repository | string | No | — | — |
tag | string | No | — | — |
acr_run_id | string | No | — | — |
acr_status | string | No | — | — |
build_check_count | integer | No | — | — |
registry_name | string | No | — | — |
registry_resource_group | string | No | — | — |
login_server | string | No | — | — |
retried_from | string | No | — | — |
retry_count | integer | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | json | No | — | — |
failed_layer | json | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | submit | — |
submitted | No | No | — | arm_wait | — |
waiting | No | No | — | — | Poll ACR task until succeeded or failed |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | submit | submitted | — |
submitted | arm_wait | waiting | — |
waiting | check_build | waiting | — |
waiting | complete | completed | — |
* (any state) | fail | failed | — |
Outcomes ​
| Outcome | Type | Description | State Data Keys |
|---|---|---|---|
built | SUCCESS | Image published to platform ACR | image, sha |
failed | FAILURE | Apphost workflow failed | failure_reason |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "apphost.image.build",
"initial_data": {
"site_uuid": "value",
"source_location": "value",
"strategy": "value",
"sha": "value"
}
}