hardgcloud

Create a Cloud Build trigger that fires on pushes to a GitHub repository

command

gcloud builds triggers create github --repo-name REPO --repo-owner OWNER --branch-pattern PATTERN --build-config cloudbuild.yaml

also accepted

gcloud builds triggers create github

Command breakdown

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

gcloudbuildstriggerscreategithub--repo-nameREPO--repo-ownerOWNER--branch-patternPATTERN--build-configcloudbuild.yaml
FlagPurpose
--repo-nameBoolean flag
--repo-ownerBoolean flag
--branch-patternBoolean flag
--build-configBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →