Skip to main content

Deployments

Deployments let the user schedule a job to deploy the contents of their workspace repository to their workspace in Meltano Cloud.

This can be done manually or via a GitHub repository webhook:

  • Payload URL: https://app.meltano.com/api/workspaces/<workspace_id>/deployments/github-webhook
  • Content type: application/json
  • Secret: "Deployment Secret" from workspace settings in Meltano Cloud

Requests​

Deploy your workspace repository​

POST /api/workspaces/{workspaces-id}/deployments

Deploys the workspace {workspace-id}.

Examples
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.meltano.com:443/api/workspaces/17a6127a-b1b3-42f1-aea1-c599e4488fce/deployments' -i -X POST \
-H 'Content-Type: application/json'

Response​

202 Accepted

Job with HAL links.

Example response body

GitHub webhook workspace deployment​

POST /api/workspaces/{workspaces-id}/deployments/github-webhook

Receives POST requests from GitHub and starts a workspace deploy job.

Examples
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.meltano.com:443/api/workspaces/17a6127a-b1b3-42f1-aea1-c599e4488fce/deployments/github-webhook' -i -X POST \
-H 'X-Hub-Signature: sha1=9d090882292a8f4980e3605b16e7da5f5f0f86bb' \
-H 'Content-Type: application/json' \
-d '{ }'

Response​

202 Accepted

Job with HAL links.

Example response body