deployments
Creates, updates, deletes, gets or lists a deployments
resource.
Overview
Name | deployments |
Type | Resource |
Id | digitalocean.apps.deployments |
Fields
Name | Datatype | Description |
---|---|---|
id | string | |
cause | string | |
cloned_from | string | |
created_at | string | |
functions | array | |
jobs | array | |
phase | string | |
phase_last_updated_at | string | |
progress | object | |
services | array | |
spec | object | The desired configuration of an application. |
static_sites | array | |
tier_slug | string | |
updated_at | string | |
workers | array |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
apps_get_deployment | SELECT | app_id, deployment_id | Retrieve information about an app deployment. |
apps_list_deployments | SELECT | app_id | List all deployments of an app. |
apps_create_deployment | INSERT | app_id | Creating an app deployment will pull the latest changes from your repository and schedule a new deployment for your app. |
apps_cancel_deployment | EXEC | app_id, deployment_id | Immediately cancel an in-progress deployment. |
SELECT
examples
List all deployments of an app.
SELECT
id,
cause,
cloned_from,
created_at,
functions,
jobs,
phase,
phase_last_updated_at,
progress,
services,
spec,
static_sites,
tier_slug,
updated_at,
workers
FROM digitalocean.apps.deployments
WHERE app_id = '{{ app_id }}';
INSERT
example
Use the following StackQL query and manifest file to create a new deployments
resource.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO digitalocean.apps.deployments (
data__force_build,
app_id
)
SELECT
'{{ force_build }}',
'{{ app_id }}'
;
/*+ create */
INSERT INTO digitalocean.apps.deployments (
app_id
)
SELECT
'{{ app_id }}'
;
- name: deployments
props:
- name: app_id
value: string
- name: force_build
value: boolean