Skip to content
Proud to collaborate with Microsoft for Startups

gcp.cloudbuild.image.build ​

Start a Google Cloud Build job that builds a container image and pushes it to Artifact Registry.

Overview ​

PropertyValue
Workflow typeLinear
LibraryBase-gcp
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidYes—GCP CloudConnection UUID.
project_idstringNo—GCP project override; defaults to the connection project.
locationstringYes—Cloud Build region, e.g. us-central1.
source_typestringYes—Source kind, one of github_repo, git_repo, storage_archive.
sourcejsonYes—Provider Cloud Build source payload, sanitized before logging.
image_uristringYes—Destination Artifact Registry image URI including tag.
dockerfilestringNo—Dockerfile path relative to source root.
build_contextstringNo—Build context directory relative to source root.
substitutionsjsonNo—Cloud Build substitution variables.
service_accountstringNo—Cloud Build service account email or resource name.
timeout_secondsintegerNo—Build timeout in seconds.
logs_bucketstringNo—Optional logs bucket.
tagsjsonNo—Provider build tags.

Output Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidNo—Echoed connection UUID.
project_idstringNo—Effective project.
locationstringNo—Build region.
source_typestringNo—Source kind, one of github_repo, git_repo, storage_archive.
sourcejsonNo—Provider Cloud Build source payload, sanitized before logging.
dockerfilestringNo—Dockerfile path relative to source root.
build_contextstringNo—Build context directory relative to source root.
substitutionsjsonNo—Cloud Build substitution variables.
service_accountstringNo—Cloud Build service account email or resource name.
timeout_secondsintegerNo—Build timeout in seconds.
logs_bucketstringNo—Optional logs bucket.
tagsjsonNo—Provider build tags.
build_idstringNo—Cloud Build build id.
build_namestringNo—Full provider build resource name.
statusstringNo—Initial build status.
image_uristringNo—Destination image URI.
log_urlstringNo—Cloud Build log URL.
buildjsonNo—Sanitized provider build response.
failure_reasonstringNo—Human-readable failure reason.
failed_stepstringNo—Failed logical step.
failed_layerjsonNo—Engine failed layer.
failed_at_statestringNo—State where failure occurred.
errorstringNo—Error message.
error_typestringNo—Error class.

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—preflight—
preflightingNoNo—execute—
startingNoNo—complete—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingpreflightpreflighting—
preflightingexecutestarting—
startingcompletecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "gcp.cloudbuild.image.build",
  "initial_data": {
    "connection_uuid": "value",
    "location": "value",
    "source_type": "value",
    "source": "value"
  }
}