1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-17 06:11:59 +00:00
gcloud-help/gcloud/alpha/builds/triggers/import
2023-01-19 00:56:33 +00:00

46 lines
1.6 KiB
Text

NAME
gcloud alpha builds triggers import - import a build trigger
SYNOPSIS
gcloud alpha builds triggers import --source=PATH [--region=REGION]
[GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(ALPHA) 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 alpha 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, 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.
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 alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct
project, you might be trying to access an API with an invitation-only early
access allowlist. These variants are also available:
$ gcloud builds triggers import
$ gcloud beta builds triggers import