gcloud builds triggers import - import a build trigger
gcloud builds triggers import --source=PATH [--region=REGION] [GCLOUD_WIDE_FLAG ...]
To import a trigger from a file: $ cat > trigger.yaml <<EOF name: my-trigger github: owner: GoogleCloudPlatform name: cloud-builders push: branch: . EOF
To import a build trigger from a file called trigger.yaml, run:
$ gcloud builds triggers import --source=trigger.yaml
- --source=PATH
File path where trigger should be imported from.
- --region=REGION
The region of the Cloud Build Service to use. Must be set to a supported region name (e.g. us-central1). If unset, builds/region, which is the default region to use when working with Cloud Build resources, is used. If builds/region is unset, region is set to global.
These flags are available to all commands: --access-token-file, --account, --billing-project, --configuration, --flags-file, --flatten, --format, --help, --impersonate-service-account, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity.
Run $ gcloud help for details.
These variants are also available:
$ gcloud alpha builds triggers import
$ gcloud beta builds triggers import