Google App Engine

  • POST
  • /workspaces
  • /:domain
  • /projects
  • /:project_name
  • /pipelines
  • /:pipeline_id
  • /actions

Request

URL PARAMETERS
domainrequired string
The workspace domain.
pipeline_idrequired integer
The numerical ID of the desired pipeline.
project_namerequired string
The name ID of the project.
POST PARAMETERS
namerequired string
The name of the action.
typerequired string
The type of the action. Should be set to GOOGLE_APP_DEPLOY.
bucket_namerequired string
The name of the GAE Bucket.
application_namerequired string
The name of the GAE application.
integrationrequired Integration
The integration.
input_typestring
Defines whether the files are deployed from the repository or from the build filesystem. Can be one of SCM_REPOSITORY or BUILD_ARTIFACTS.
local_pathstring
The path in the repository.
version_labelstring
The label of the image version.
image_urlstring
The URL address to the desired image.
promote_all_trafficboolean
Specifies whether or not to send all traffic to the new version immediately.
stop_previous_versionboolean
Specifies whether or not to stop previous version instances.
verbositystring
The verbosity level. Default level is warning. Can be one of critical, debug, error, info, none or warning.
config_pathstring
YAML configuration file.

Last modified on Sep 27, 2024

Example:

curl -X POST "https://api.buddy.works/workspaces/:domain/projects/:project_name/pipelines/:pipeline_id/actions" \
  -H "Authorization: Bearer <YOUR-TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Deploy to Google App Engine/buddy-tests-112923",
  "type": "GOOGLE_APP_DEPLOY",
  "trigger_time": "ON_EVERY_EXECUTION",
  "input_type": "SCM_REPOSITORY",
  "local_path": "/",
  "bucket_name": "artifacts.tokyo-house-112923.appspot.com",
  "application_name": "buddy-tests-112923",
  "version_label": "${BUDDY_EXECUTION_REVISION}",
  "image_url": "gcr.io/your-project-id/your-image",
  "promote_all_traffic": true,
  "stop_previous_version": true,
  "verbosity": "warning"
}'
EXAMPLE RESPONSE
{ "url": "https://api.buddy.works/workspaces/buddy/projects/company-website/pipelines/2/actions/2", "html_url": "https://app.buddy.works/buddy/company-website/pipelines/pipeline/2/action/2/edit", "id": 2, "name": "Deploy to Google App Engine/buddy-tests-112923", "type": "GOOGLE_APP_DEPLOY", "trigger_time": "ON_EVERY_EXECUTION", "last_execution_status": "INITIAL", "input_type": "SCM_REPOSITORY", "local_path": "/", "bucket_name": "artifacts.tokyo-house-112923.appspot.com", "application_name": "buddy-tests-112923", "version_label": "${BUDDY_EXECUTION_REVISION}", "image_url": "gcr.io/your-project-id/your-image", "promote_all_traffic": true, "stop_previous_version": true, "verbosity": "warning", "pipeline": { "url": "https://api.buddy.works/workspaces/buddy/projects/company-website/pipelines/2", "html_url": "https://app.buddy.works/buddy/company-website/pipelines/pipeline/2", "id": 2, "name": "test server", "on": "CLICK", "refs": [ "refs/heads/master" ], "last_execution_status": "SUCCESSFUL", "last_execution_revision": "506a3963507943d6908154f4bc9646e829128a08" } }
STATUS
201 Created
LIMITS
X-Rate-Limit-Limit: 1 X-Rate-Limit-Remaining: 999