1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-08 18:45:13 +00:00
gcloud-help/gcloud/beta/workflows/deploy

103 lines
3.6 KiB
Text
Raw Normal View History

2022-03-01 04:29:52 +00:00
NAME
gcloud beta workflows deploy - create or update a workflow
SYNOPSIS
gcloud beta workflows deploy (WORKFLOW : --location=LOCATION) [--async]
[--description=DESCRIPTION] [--labels=[KEY=VALUE,...]]
[--service-account=SERVICE_ACCOUNT] [--source=SOURCE]
[GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(BETA) Create or update a workflow.
EXAMPLES
To deploy a workflow with source code myWorkflow.yaml on Workflows:
$ gcloud beta workflows deploy my-workflow --source=myWorkflow.yaml
You may also skip waiting for the operation to finish:
$ gcloud beta workflows deploy my-workflow \
--source=myWorkflow.yaml --async
To specify a service account as the workflow identity:
$ gcloud beta workflows deploy my-workflow \
--source=myWorkflow.yaml \
--service-account=my-account@my-project.iam.gserviceaccount.com
POSITIONAL ARGUMENTS
Workflow resource - Name of the workflow to deploy. The arguments in this
group can be used to specify the attributes of this resource. (NOTE) Some
attributes are not given arguments in this group but can be set in other
2023-05-04 10:43:54 +00:00
ways.
To set the project attribute:
2022-03-01 04:29:52 +00:00
◆ provide the argument workflow on the command line with a fully
specified name;
◆ provide the argument --project on the command line;
◆ set the property core/project.
This must be specified.
WORKFLOW
2023-05-04 10:43:54 +00:00
ID of the workflow or fully qualified identifier for the workflow.
To set the workflow attribute:
2022-03-01 04:29:52 +00:00
▸ provide the argument workflow on the command line.
2022-08-10 08:48:58 +00:00
This positional argument must be specified if any of the other
arguments in this group are specified.
2022-03-01 04:29:52 +00:00
--location=LOCATION
Cloud location for the workflow. Alternatively, set the property
2023-05-04 10:43:54 +00:00
[workflows/location].
To set the location attribute:
2022-03-01 04:29:52 +00:00
▸ provide the argument workflow on the command line with a fully
specified name;
▸ provide the argument --location on the command line;
▸ set the property workflows/location.
FLAGS
--async
Return immediately, without waiting for the operation in progress to
complete.
--description=DESCRIPTION
The description of the workflow to deploy.
--labels=[KEY=VALUE,...]
List of label KEY=VALUE pairs to add.
Keys must start with a lowercase character and contain only hyphens
(-), underscores (_), lowercase characters, and numbers. Values must
contain only hyphens (-), underscores (_), lowercase characters, and
numbers.
--service-account=SERVICE_ACCOUNT
The service account that should be used as the workflow identity.
"projects/PROJECT_ID/serviceAccounts/" prefix may be skipped from the
full resource name, in that case "projects/-/serviceAccounts/" is
prepended to the service account ID.
--source=SOURCE
Location of a workflow source code to deploy. Required on first
deployment. Location needs to be defined as a path to a local file with
the source code.
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 workflows deploy