1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-13 16:37:00 +00:00
gcloud-help/gcloud/beta/builds/triggers/import
2022-03-01 04:29:52 +00:00

41 lines
1.3 KiB
Text

NAME
gcloud beta builds triggers import - import a build trigger
SYNOPSIS
gcloud beta builds triggers import --source=PATH [--region=REGION]
[GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(BETA) To import a trigger from a file: $ cat > trigger.yaml <<EOF name:
my-trigger github: owner: GoogleCloudPlatform name: cloud-builders push:
branch: . EOF
EXAMPLES
To import a build trigger from a file called trigger.yaml, run:
$ gcloud beta builds triggers import --source=trigger.yaml
REQUIRED FLAGS
--source=PATH
File path where trigger should be imported from.
OPTIONAL FLAGS
--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, the global service
region is used. This field is restricted.
GCLOUD WIDE FLAGS
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.
NOTES
This command is currently in beta and might change without notice. This
variant is also available:
$ gcloud alpha builds triggers import