easygcloud

Create a Cloud Build trigger on a Cloud Source Repository branch

command

gcloud builds triggers create cloud-source-repositories --repo=my-app-repo --branch-pattern=main --build-config=cloudbuild.yaml

Command breakdown

Part of the Google Cloud CLI (gcloud) — Cloud Build category.

gcloudbuildstriggerscreatecloud-source-repositories--repo=my-app-repo--branch-pattern=main--build-config=cloudbuild.yaml
FlagPurpose
--repoSet to: my-app-repo
--branch-patternSet to: main
--build-configSet to: cloudbuild.yaml

Test your recall — not just your reading.

Practice with interactive quiz →