mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-18 06:47:12 +00:00
gcloud: Fri Mar 24 11:31:22 UTC 2023
This commit is contained in:
parent
a4bd29dd06
commit
4ccfc7a5e3
142 changed files with 4081 additions and 397 deletions
|
|
@ -7,11 +7,12 @@ SYNOPSIS
|
|||
(--trigger-config=PATH | [(--build-config=PATH | --inline-config=PATH
|
||||
| [--dockerfile=DOCKERFILE : --dockerfile-dir=DOCKERFILE_DIR;
|
||||
default="/" --dockerfile-image=DOCKERFILE_IMAGE])
|
||||
: --description=DESCRIPTION
|
||||
--github-enterprise-config=GITHUB_ENTERPRISE_CONFIG --name=NAME
|
||||
--region=REGION --require-approval --service-account=SERVICE_ACCOUNT
|
||||
--substitutions=[KEY=VALUE,...]
|
||||
--repo=REPO --repo-type=REPO_TYPE (--branch=BRANCH | --tag=TAG)])
|
||||
: --description=DESCRIPTION --name=NAME --region=REGION
|
||||
--require-approval --service-account=SERVICE_ACCOUNT
|
||||
--substitutions=[KEY=VALUE,...] (--branch=BRANCH
|
||||
| --tag=TAG) (--repository=REPOSITORY
|
||||
| [--repo=REPO --repo-type=REPO_TYPE
|
||||
: --github-enterprise-config=GITHUB_ENTERPRISE_CONFIG])])
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
|
|
@ -26,6 +27,14 @@ EXAMPLES
|
|||
--repo=https://www.github.com/owner/repo --repo-type=GITHUB \
|
||||
--branch=my-branch
|
||||
|
||||
To create a manual trigger that builds off branch my-branch in a 2nd-gen
|
||||
GitHub repository resource:
|
||||
|
||||
$ gcloud builds triggers create manual --name=my-manual-trigger \
|
||||
--build-config=cloudbuild.yaml \
|
||||
--repository=projects/my-proj/locations/us-west1/connections/\
|
||||
my-conn/repositories/my-repo --branch=my-branch
|
||||
|
||||
REQUIRED FLAGS
|
||||
Exactly one of these must be specified:
|
||||
|
||||
|
|
@ -39,12 +48,6 @@ REQUIRED FLAGS
|
|||
--description=DESCRIPTION
|
||||
Build trigger description.
|
||||
|
||||
--github-enterprise-config=GITHUB_ENTERPRISE_CONFIG
|
||||
The resource name of the GitHub Enterprise config that should be
|
||||
applied to this source. Format:
|
||||
projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}
|
||||
or projects/{project}/githubEnterpriseConfigs/{id}
|
||||
|
||||
--name=NAME
|
||||
Build trigger name.
|
||||
|
||||
|
|
@ -128,21 +131,7 @@ REQUIRED FLAGS
|
|||
Use a build configuration (cloudbuild.yaml) file for building
|
||||
multiple images in a single trigger.
|
||||
|
||||
Flags for repository information
|
||||
|
||||
--repo=REPO
|
||||
URI of the repository. Currently only HTTP URIs for GitHub and
|
||||
Cloud Source Repositories are supported.
|
||||
|
||||
This flag argument must be specified if any of the other
|
||||
arguments in this group are specified.
|
||||
|
||||
--repo-type=REPO_TYPE
|
||||
Type of the repository. Currently only GitHub and Cloud Source
|
||||
Repository types are supported.
|
||||
|
||||
This flag argument must be specified if any of the other
|
||||
arguments in this group are specified.
|
||||
Flags for repository and branch information
|
||||
|
||||
Exactly one of these must be specified:
|
||||
|
||||
|
|
@ -152,6 +141,36 @@ REQUIRED FLAGS
|
|||
--tag=TAG
|
||||
Tag to build.
|
||||
|
||||
Flags for repository information
|
||||
|
||||
Exactly one of these must be specified:
|
||||
|
||||
--repository=REPOSITORY
|
||||
Repository resource (2nd gen) to use, in the format
|
||||
"projects/*/locations/*/connections/*/repositories/".
|
||||
|
||||
1st-gen repository settings.
|
||||
|
||||
--repo=REPO
|
||||
URI of the repository (1st gen). Currently only HTTP URIs for
|
||||
GitHub and Cloud Source Repositories are supported.
|
||||
|
||||
This flag argument must be specified if any of the other
|
||||
arguments in this group are specified.
|
||||
|
||||
--repo-type=REPO_TYPE
|
||||
Type of the repository (1st gen). Currently only GitHub and
|
||||
Cloud Source Repository types are supported.
|
||||
|
||||
This flag argument must be specified if any of the other
|
||||
arguments in this group are specified.
|
||||
|
||||
--github-enterprise-config=GITHUB_ENTERPRISE_CONFIG
|
||||
The resource name of the GitHub Enterprise config that should
|
||||
be applied to this source (1st gen). Format:
|
||||
projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}
|
||||
or projects/{project}/githubEnterpriseConfigs/{id}
|
||||
|
||||
GCLOUD WIDE FLAGS
|
||||
These flags are available to all commands: --access-token-file, --account,
|
||||
--billing-project, --configuration, --flags-file, --flatten, --format,
|
||||
|
|
|
|||
|
|
@ -8,12 +8,13 @@ SYNOPSIS
|
|||
| --inline-config=PATH | [--dockerfile=DOCKERFILE
|
||||
: --dockerfile-dir=DOCKERFILE_DIR;
|
||||
default="/" --dockerfile-image=DOCKERFILE_IMAGE])
|
||||
: --description=DESCRIPTION
|
||||
--github-enterprise-config=GITHUB_ENTERPRISE_CONFIG --name=NAME
|
||||
--region=REGION --require-approval --service-account=SERVICE_ACCOUNT
|
||||
: --description=DESCRIPTION --name=NAME --region=REGION
|
||||
--require-approval --service-account=SERVICE_ACCOUNT
|
||||
--subscription-filter=SUBSCRIPTION_FILTER
|
||||
--substitutions=[KEY=VALUE,...]
|
||||
--repo=REPO --repo-type=REPO_TYPE (--branch=BRANCH | --tag=TAG)])
|
||||
--substitutions=[KEY=VALUE,...] (--branch=BRANCH
|
||||
| --tag=TAG) (--repository=REPOSITORY
|
||||
| [--repo=REPO --repo-type=REPO_TYPE
|
||||
: --github-enterprise-config=GITHUB_ENTERPRISE_CONFIG])])
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
|
|
@ -30,6 +31,15 @@ EXAMPLES
|
|||
--repo=https://www.github.com/owner/repo --repo-type=GITHUB \
|
||||
--branch=my-branch
|
||||
|
||||
To create a Pub/Sub trigger that listens to topic my-topic and builds off
|
||||
branch my-branch in a 2nd-gen GitHub repository resource:
|
||||
|
||||
$ gcloud builds triggers create pubsub --name=my-pubsub-trigger \
|
||||
--service-account="projects/my-project/serviceAccounts/my-byosa@\
|
||||
my-project.iam.gserviceaccount.com" \
|
||||
--repository=projects/my-proj/locations/us-west1/connections/\
|
||||
my-conn/repositories/my-repo --branch=my-branch
|
||||
|
||||
REQUIRED FLAGS
|
||||
Exactly one of these must be specified:
|
||||
|
||||
|
|
@ -49,12 +59,6 @@ REQUIRED FLAGS
|
|||
--description=DESCRIPTION
|
||||
Build trigger description.
|
||||
|
||||
--github-enterprise-config=GITHUB_ENTERPRISE_CONFIG
|
||||
The resource name of the GitHub Enterprise config that should be
|
||||
applied to this source. Format:
|
||||
projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}
|
||||
or projects/{project}/githubEnterpriseConfigs/{id}
|
||||
|
||||
--name=NAME
|
||||
Build trigger name.
|
||||
|
||||
|
|
@ -143,21 +147,7 @@ REQUIRED FLAGS
|
|||
Use a build configuration (cloudbuild.yaml) file for building
|
||||
multiple images in a single trigger.
|
||||
|
||||
Flags for repository information
|
||||
|
||||
--repo=REPO
|
||||
URI of the repository. Currently only HTTP URIs for GitHub and
|
||||
Cloud Source Repositories are supported.
|
||||
|
||||
This flag argument must be specified if any of the other
|
||||
arguments in this group are specified.
|
||||
|
||||
--repo-type=REPO_TYPE
|
||||
Type of the repository. Currently only GitHub and Cloud Source
|
||||
Repository types are supported.
|
||||
|
||||
This flag argument must be specified if any of the other
|
||||
arguments in this group are specified.
|
||||
Flags for repository and branch information
|
||||
|
||||
Exactly one of these must be specified:
|
||||
|
||||
|
|
@ -167,6 +157,36 @@ REQUIRED FLAGS
|
|||
--tag=TAG
|
||||
Tag to build.
|
||||
|
||||
Flags for repository information
|
||||
|
||||
Exactly one of these must be specified:
|
||||
|
||||
--repository=REPOSITORY
|
||||
Repository resource (2nd gen) to use, in the format
|
||||
"projects/*/locations/*/connections/*/repositories/".
|
||||
|
||||
1st-gen repository settings.
|
||||
|
||||
--repo=REPO
|
||||
URI of the repository (1st gen). Currently only HTTP URIs for
|
||||
GitHub and Cloud Source Repositories are supported.
|
||||
|
||||
This flag argument must be specified if any of the other
|
||||
arguments in this group are specified.
|
||||
|
||||
--repo-type=REPO_TYPE
|
||||
Type of the repository (1st gen). Currently only GitHub and
|
||||
Cloud Source Repository types are supported.
|
||||
|
||||
This flag argument must be specified if any of the other
|
||||
arguments in this group are specified.
|
||||
|
||||
--github-enterprise-config=GITHUB_ENTERPRISE_CONFIG
|
||||
The resource name of the GitHub Enterprise config that should
|
||||
be applied to this source (1st gen). Format:
|
||||
projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}
|
||||
or projects/{project}/githubEnterpriseConfigs/{id}
|
||||
|
||||
GCLOUD WIDE FLAGS
|
||||
These flags are available to all commands: --access-token-file, --account,
|
||||
--billing-project, --configuration, --flags-file, --flatten, --format,
|
||||
|
|
|
|||
|
|
@ -8,12 +8,13 @@ SYNOPSIS
|
|||
| --inline-config=PATH | [--dockerfile=DOCKERFILE
|
||||
: --dockerfile-dir=DOCKERFILE_DIR;
|
||||
default="/" --dockerfile-image=DOCKERFILE_IMAGE])
|
||||
: --description=DESCRIPTION
|
||||
--github-enterprise-config=GITHUB_ENTERPRISE_CONFIG --name=NAME
|
||||
--region=REGION --require-approval --service-account=SERVICE_ACCOUNT
|
||||
: --description=DESCRIPTION --name=NAME --region=REGION
|
||||
--require-approval --service-account=SERVICE_ACCOUNT
|
||||
--subscription-filter=SUBSCRIPTION_FILTER
|
||||
--substitutions=[KEY=VALUE,...]
|
||||
--repo=REPO --repo-type=REPO_TYPE (--branch=BRANCH | --tag=TAG)])
|
||||
--substitutions=[KEY=VALUE,...] (--branch=BRANCH
|
||||
| --tag=TAG) (--repository=REPOSITORY
|
||||
| [--repo=REPO --repo-type=REPO_TYPE
|
||||
: --github-enterprise-config=GITHUB_ENTERPRISE_CONFIG])])
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
|
|
@ -31,6 +32,18 @@ EXAMPLES
|
|||
--repo=https://www.github.com/owner/repo --repo-type=GITHUB \
|
||||
--branch=my-branch
|
||||
|
||||
To create a Webhook trigger that requires secret
|
||||
projects/my-project/secrets/my-secret/versions/2 and builds off branch
|
||||
my-branch in a 2nd-gen GitHub repository:
|
||||
|
||||
$ gcloud builds triggers create webhook --name=my-webhook-trigger \
|
||||
--service-account="projects/my-project/serviceAccounts/my-byosa@\
|
||||
my-project.iam.gserviceaccount.com" \
|
||||
--secret=projects/my-project/secrets/my-secret/versions/2 \
|
||||
--branch=my-branch \
|
||||
--repository=projects/my-proj/locations/us-west1/connections/\
|
||||
my-conn/repositories/my-repo
|
||||
|
||||
REQUIRED FLAGS
|
||||
Exactly one of these must be specified:
|
||||
|
||||
|
|
@ -52,12 +65,6 @@ REQUIRED FLAGS
|
|||
--description=DESCRIPTION
|
||||
Build trigger description.
|
||||
|
||||
--github-enterprise-config=GITHUB_ENTERPRISE_CONFIG
|
||||
The resource name of the GitHub Enterprise config that should be
|
||||
applied to this source. Format:
|
||||
projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}
|
||||
or projects/{project}/githubEnterpriseConfigs/{id}
|
||||
|
||||
--name=NAME
|
||||
Build trigger name.
|
||||
|
||||
|
|
@ -146,21 +153,7 @@ REQUIRED FLAGS
|
|||
Use a build configuration (cloudbuild.yaml) file for building
|
||||
multiple images in a single trigger.
|
||||
|
||||
Flags for repository information
|
||||
|
||||
--repo=REPO
|
||||
URI of the repository. Currently only HTTP URIs for GitHub and
|
||||
Cloud Source Repositories are supported.
|
||||
|
||||
This flag argument must be specified if any of the other
|
||||
arguments in this group are specified.
|
||||
|
||||
--repo-type=REPO_TYPE
|
||||
Type of the repository. Currently only GitHub and Cloud Source
|
||||
Repository types are supported.
|
||||
|
||||
This flag argument must be specified if any of the other
|
||||
arguments in this group are specified.
|
||||
Flags for repository and branch information
|
||||
|
||||
Exactly one of these must be specified:
|
||||
|
||||
|
|
@ -170,6 +163,36 @@ REQUIRED FLAGS
|
|||
--tag=TAG
|
||||
Tag to build.
|
||||
|
||||
Flags for repository information
|
||||
|
||||
Exactly one of these must be specified:
|
||||
|
||||
--repository=REPOSITORY
|
||||
Repository resource (2nd gen) to use, in the format
|
||||
"projects/*/locations/*/connections/*/repositories/".
|
||||
|
||||
1st-gen repository settings.
|
||||
|
||||
--repo=REPO
|
||||
URI of the repository (1st gen). Currently only HTTP URIs for
|
||||
GitHub and Cloud Source Repositories are supported.
|
||||
|
||||
This flag argument must be specified if any of the other
|
||||
arguments in this group are specified.
|
||||
|
||||
--repo-type=REPO_TYPE
|
||||
Type of the repository (1st gen). Currently only GitHub and
|
||||
Cloud Source Repository types are supported.
|
||||
|
||||
This flag argument must be specified if any of the other
|
||||
arguments in this group are specified.
|
||||
|
||||
--github-enterprise-config=GITHUB_ENTERPRISE_CONFIG
|
||||
The resource name of the GitHub Enterprise config that should
|
||||
be applied to this source (1st gen). Format:
|
||||
projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}
|
||||
or projects/{project}/githubEnterpriseConfigs/{id}
|
||||
|
||||
GCLOUD WIDE FLAGS
|
||||
These flags are available to all commands: --access-token-file, --account,
|
||||
--billing-project, --configuration, --flags-file, --flatten, --format,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue