Build multi-arch image
- POST
- /workspaces
- /:domain
- /projects
- /:project_name
- /pipelines
- /:pipeline_id
- /actions
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": "Build multi-arch image",
"type": "DOCKER_BUILD_MULTI_ARCH",
"build_args": [
"key=value"
],
"dockerfile_path": "Dockerfile",
"context_path": "/contextPath",
"target_stage": "$targetStage",
"secret_id": "$secretId",
"secret_src": "$path_to_secret",
"target_platform": "linux/amd64,linux/arm64"
}'
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/action/2/edit", "id": 2, "name": "Build multi-arch image", "type": "DOCKER_BUILD_MULTI_ARCH", "trigger_time": "ON_EVERY_EXECUTION", "last_execution_status": "INITIAL", "dockerfile_path": "Dockerfile", "target_platform": "linux/amd64,linux/arm64", "secret_id": "$secretId", "secret_src": "$path_to_secret", "build_args": [ "key=value" ], "context_path": "/contextPath", "target_stage": "$targetStage", "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 } }
STATUS201 Created
LIMITSX-Rate-Limit-Limit: 1 X-Rate-Limit-Remaining: 999