mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-18 14:56:05 +00:00
gcloud: Wed May 10 11:35:23 UTC 2023
This commit is contained in:
parent
a4643b613a
commit
14441c7ea7
154 changed files with 6649 additions and 164 deletions
|
|
@ -6,9 +6,11 @@ SYNOPSIS
|
|||
[--default-buckets-behavior=DEFAULT_BUCKETS_BEHAVIOR]
|
||||
[--disk-size=DISK_SIZE] [--gcs-log-dir=GCS_LOG_DIR]
|
||||
[--gcs-source-staging-dir=GCS_SOURCE_STAGING_DIR]
|
||||
[--ignore-file=IGNORE_FILE] [--machine-type=MACHINE_TYPE]
|
||||
[--region=REGION] [--substitutions=[KEY=VALUE,...]] [--suppress-logs]
|
||||
[--timeout=TIMEOUT] [--worker-pool=WORKER_POOL]
|
||||
[--git-source-dir=GIT_SOURCE_DIR]
|
||||
[--git-source-revision=GIT_SOURCE_REVISION] [--ignore-file=IGNORE_FILE]
|
||||
[--machine-type=MACHINE_TYPE] [--region=REGION]
|
||||
[--substitutions=[KEY=VALUE,...]] [--suppress-logs] [--timeout=TIMEOUT]
|
||||
[--worker-pool=WORKER_POOL]
|
||||
[--config=CONFIG; default="cloudbuild.yaml"
|
||||
| --pack=[builder=BUILDER],[env=ENV],[image=IMAGE]
|
||||
| --tag=TAG, -t TAG] [GCLOUD_WIDE_FLAG ...]
|
||||
|
|
@ -45,15 +47,15 @@ POSITIONAL ARGUMENTS
|
|||
|
||||
[SOURCE]
|
||||
The location of the source to build. The location can be a directory
|
||||
on a local disk or a gzipped archive file (.tar.gz) in Google Cloud
|
||||
Storage. If the source is a local directory, this command skips the
|
||||
files specified in the --ignore-file. If --ignore-file is not
|
||||
specified, use.gcloudignore file. If a .gcloudignore file is absent
|
||||
and a .gitignore file is present in the local source directory,
|
||||
gcloud will use a generated Git-compatible .gcloudignore file that
|
||||
respects your .gitignored files. The global .gitignore is not
|
||||
respected. For more information on .gcloudignore, see gcloud topic
|
||||
gcloudignore.
|
||||
on a local disk, a gzipped archive file (.tar.gz) in Google Cloud
|
||||
Storage, or a Git repo url starting with http:// or https://. If the
|
||||
source is a local directory, this command skips the files specified
|
||||
in the --ignore-file. If --ignore-file is not specified,
|
||||
use.gcloudignore file. If a .gcloudignore file is absent and a
|
||||
.gitignore file is present in the local source directory, gcloud will
|
||||
use a generated Git-compatible .gcloudignore file that respects your
|
||||
.gitignored files. The global .gitignore is not respected. For more
|
||||
information on .gcloudignore, see gcloud topic gcloudignore.
|
||||
|
||||
--no-source
|
||||
Specify that no source should be uploaded with this build.
|
||||
|
|
@ -95,6 +97,22 @@ FLAGS
|
|||
set --default-buckets-behavior to REGIONAL_USER_OWNED_BUCKET and
|
||||
builds/region is not global.
|
||||
|
||||
--git-source-dir=GIT_SOURCE_DIR
|
||||
Directory, relative to the source root, in which to run the build. This
|
||||
must be a relative path. If a step's dir is specified and is an
|
||||
absolute path, this value is ignored for that step's execution.
|
||||
|
||||
--git-source-revision=GIT_SOURCE_REVISION
|
||||
Revision to fetch from the Git repository such as a branch, a tag, a
|
||||
commit SHA, or any Git ref to run the build.
|
||||
|
||||
Cloud Build uses git fetch to fetch the revision from the Git
|
||||
repository; therefore make sure that the string you provide for
|
||||
revision is parsable by the command. For information on string values
|
||||
accepted by git fetch, see
|
||||
https://git-scm.com/docs/gitrevisions#_specifying_revisions. For
|
||||
information on git fetch, see https://git-scm.com/docs/git-fetch.
|
||||
|
||||
--ignore-file=IGNORE_FILE
|
||||
Override the .gcloudignore file and use the specified file instead.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue