You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for the services or configurations you want to deploy. If not given,
60
-
defaults to app.yaml in the current directory. If that is not found,
61
-
attempts to automatically generate necessary configuration files (such as
62
-
app.yaml) in the current directory (example, `app.yaml cron.yaml`). Note:
63
-
the additional deliverables may require additional roles for your service
64
-
account user.
65
-
66
-
- `build_env_vars`: (Optional) List of key=value pairs to set as environment
67
-
variables during tbe build process. This will overwrite any duplicate key
68
-
environment variables defined in the app.yaml.
69
-
70
-
```yaml
71
-
with:
72
-
build_env_vars: |-
73
-
FOO=bar
74
-
ZIP=zap
75
-
```
76
-
77
-
Note: To include environment variables defined in another file, use the
78
-
[`includes` directive][includes-directive] in your app.yaml.
79
-
80
-
- `env_vars`: (Optional) List of key=value pairs to set as environment
81
-
variables. This will overwrite any duplicate key environment variables
82
-
defined in the app.yaml.
83
-
84
-
```yaml
85
-
with:
86
-
env_vars: |-
87
-
FOO=bar
88
-
ZIP=zap
89
-
```
90
-
91
-
Note: To include environment variables defined in another file, use the
92
-
[`includes` directive][includes-directive] in your app.yaml.
93
-
94
-
- `image_url`: (Optional) Deploy with a specific container image. The image
95
-
url must be from one of the valid GCR hostnames (example, `gcr.io/`).
96
-
97
-
- `version`: (Optional) The version of the app that will be created or
98
-
replaced by this deployment. If you do not specify a version, one will be
99
-
generated for you.
100
-
101
-
- `promote`: (Optional) Promote the deployed version to receive all traffic.
102
-
The default is `true`.
103
-
104
-
- `flags`: (Optional) Space-separated list of other App Engine flags. This can
105
-
be used to access features that are not exposed via this GitHub Action.
106
-
107
-
```yaml
108
-
with:
109
-
flags: '--ignore-file=...'
110
-
```
49
+
<!-- BEGIN_AUTOGEN_INPUTS -->
50
+
51
+
- <a name="__input_project_id"></a><a href="#user-content-__input_project_id"><code>project_id</code></a>: _(Optional)_ ID of the Google Cloud project. If not provided, this is inherited from the environment.
52
+
53
+
- <a name="__input_working_directory"></a><a href="#user-content-__input_working_directory"><code>working_directory</code></a>: _(Optional)_ The working directory to use. **GitHub Actions do not honor [default working-directory settings](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#defaultsrun).** The `deliverables` input is a relative path based on this setting.
54
+
55
+
- <a name="__input_deliverables"></a><a href="#user-content-__input_deliverables"><code>deliverables</code></a>: _(Optional)_ The [yaml files](https://cloud.google.com/appengine/docs/standard/nodejs/configuration-files#optional_configuration_files) for the services or configurations you want to deploy. If not given, defaults to app.yaml in the current directory. If that is not found, attempts to automatically generate necessary configuration files (such as app.yaml) in the current directory (example, `app.yaml cron.yaml`).
56
+
Note: The additional deliverables may require additional roles for your service account user.
57
+
58
+
- <a name="__input_build_env_vars"></a><a href="#user-content-__input_build_env_vars"><code>build_env_vars</code></a>: _(Optional)_ List of build environment variables that should be set in the build environment. These are comma-separated or newline-separated `KEY=VALUE`. Keys or values that contain separators must be escaped with a backslash (e.g. `\,` or `\\n`) unless quoted. Any leading or trailing whitespace is trimmed unless values are quoted.
59
+
60
+
build_env_vars: |-
61
+
FRUIT=apple
62
+
SENTENCE=" this will retain leading and trailing spaces "
63
+
64
+
This value will only be set if the input is a non-empty value. If a non-empty value is given, the field values will be overwritten (not merged). To remove all values, set the value to the literal string `{}`.
65
+
To include build environment variables defined in another file, use the [`includes` directive][includes-directive] in your `app.yaml`.
66
+
This will overwrite any duplicate key environment variables defined in the `app.yaml`.
67
+
68
+
- <a name="__input_env_vars"></a><a href="#user-content-__input_env_vars"><code>env_vars</code></a>: _(Optional)_ List of environment variables that should be set in the environment. These are comma-separated or newline-separated `KEY=VALUE`. Keys or values that contain separators must be escaped with a backslash (e.g. `\,` or `\\n`) unless quoted. Any leading or trailing whitespace is trimmed unless values are quoted.
69
+
70
+
env_vars: |-
71
+
FRUIT=apple
72
+
SENTENCE=" this will retain leading and trailing spaces "
73
+
74
+
This value will only be set if the input is a non-empty value. If a non-empty value is given, the field values will be overwritten (not merged). To remove all values, set the value to the literal string `{}`.
75
+
To include environment variables defined in another file, use the [`includes` directive][includes-directive] in your `app.yaml`.
76
+
This will overwrite any duplicate key environment variables defined in the `app.yaml`.
77
+
78
+
- <a name="__input_image_url"></a><a href="#user-content-__input_image_url"><code>image_url</code></a>: _(Optional)_ Fully-qualified name of the container image to deploy. For example:
- <a name="__input_version"></a><a href="#user-content-__input_version"><code>version</code></a>: _(Optional)_ The version of the app that will be created or replaced by this deployment. If you do not specify a version, one will be generated for you.
87
+
88
+
- <a name="__input_promote"></a><a href="#user-content-__input_promote"><code>promote</code></a>: _(Optional, default: `true`)_ Promote the deployed version to receive all traffic.
89
+
90
+
- <a name="__input_flags"></a><a href="#user-content-__input_flags"><code>flags</code></a>: _(Optional)_ Space separate list of additional Cloud Functions flags to pass to the deploy command. This can be used to apply advanced features that are not exposed via this GitHub Action.
91
+
92
+
with:
93
+
flags: '--ignore-file=...'
94
+
95
+
Flags that include other flags must quote the _entire_ outer flag value. For example, to pass `--args=-X=123`:
See the [complete list of flags](https://cloud.google.com/sdk/gcloud/reference/app/deploy#FLAGS) for more information.
101
+
Please note, this GitHub Action does not parse or validate the flags. You are responsible for making sure the flags are available on the gcloud version and subcommand.
102
+
103
+
- <a name="__input_gcloud_version"></a><a href="#user-content-__input_gcloud_version"><code>gcloud_version</code></a>: _(Optional)_ Version of the Cloud SDK to install. If unspecified or set to "latest", the latest available gcloud SDK version for the target platform will be installed. Example: "290.0.1".
113
104
114
-
---
105
+
-<a name="__input_gcloud_component"></a><a href="#user-content-__input_gcloud_component"><code>gcloud_component</code></a>: _(Optional)_ Version of the Cloud SDK components to install and use. If unspecified, the latest or released version will be used. This is the equivalent of running 'gcloud alpha COMMAND' or 'gcloud beta COMMAND'. Valid values are `alpha` or `beta`. The default value is to use the stable track.
115
106
116
-
- `gcloud_version`: (Optional) Version of the gcloud CLI to use. The default value is `latest`.
117
107
118
-
- `gcloud_component`: (Optional) Component of the gcloud CLI to use. Valid
119
-
values are `alpha` and `beta`. The default value is to use the stable track.
108
+
<!-- END_AUTOGEN_INPUTS -->
120
109
121
110
### app.yaml customizations
122
111
@@ -126,21 +115,22 @@ for more information.
126
115
127
116
## Outputs
128
117
129
-
- `name`: The fully-qualified resource name of the deployment. This will be of
130
-
the format "apps/<project>/services/<service>/versions/<version>".
118
+
<!-- BEGIN_AUTOGEN_OUTPUTS -->
119
+
120
+
- <a name="__output_name"></a><a href="#user-content-__output_name"><code>name</code></a>: The fully-qualified resource name of the deployment. This will be of the format "apps/<project>/services/<service>/versions/<version>".
121
+
122
+
- <a name="__output_runtime"></a><a href="#user-content-__output_runtime"><code>runtime</code></a>: The computed deployment runtime.
123
+
124
+
- <a name="__output_service_account_email"></a><a href="#user-content-__output_service_account_email"><code>service_account_email</code></a>: The email address of the runtime service account.
131
125
132
-
- `runtime`: The computed deployment runtime.
126
+
- <a name="__output_serving_status"></a><a href="#user-content-__output_serving_status"><code>serving_status</code></a>: The current serving status. The value is usually "SERVING", unless the deployment failed to start.
133
127
134
-
- `service_account_email`: The email address of the runtime service account.
128
+
- <a name="__output_version_id"></a><a href="#user-content-__output_version_id"><code>version_id</code></a>: Unique identifier for the version, or the specified version if one was given.
135
129
136
-
- `serving_status`: The current serving status. The value is usually
137
-
"SERVING", unless the deployment failed to start.
130
+
- <a name="__output_version_url"></a><a href="#user-content-__output_version_url"><code>version_url</code></a>: URL of the version of the AppEngine service that was deployed.
138
131
139
-
- `version_id`: Unique identifier for the version, or the specified version if
140
-
one was given.
141
132
142
-
- `version_url`: URL of the version of the AppEngine service that was
0 commit comments