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
Copy file name to clipboardExpand all lines: README.md
+98-50Lines changed: 98 additions & 50 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,77 +46,121 @@ jobs:
46
46
47
47
## Inputs
48
48
49
-
- `project_id`: (Optional) ID of the Google Cloud project. If not provided,
50
-
this is inherited from the environment.
49
+
<!-- BEGIN_AUTOGEN_INPUTS -->
51
50
52
-
- `working_directory`: (Optional) The working directory to use. **Actions do
53
-
not honor [default working-directory
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
52
+
the environment.
53
+
54
+
- <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
for the services or configurations you want to deploy. If not given,
60
62
defaults to app.yaml in the current directory. If that is not found,
61
63
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.
64
+
app.yaml) in the current directory (example, `app.yaml cron.yaml`).
65
+
66
+
Note: The additional deliverables may require additional roles for your
67
+
service account user.
65
68
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
+
- <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
70
+
environment. These are comma-separated or newline-separated `KEY=VALUE`.
71
+
Keys or values that contain separators must be escaped with a backslash
72
+
(e.g. `\,` or `\\n`) unless quoted. Any leading or trailing whitespace is
73
+
trimmed unless values are quoted.
69
74
70
75
```yaml
71
-
with:
72
-
build_env_vars: |-
73
-
FOO=bar
74
-
ZIP=zap
76
+
build_env_vars: |-
77
+
FRUIT=apple
78
+
SENTENCE=" this will retain leading and trailing spaces "
75
79
```
76
80
77
-
Note: To include environment variables defined in another file, use the
78
-
[`includes` directive][includes-directive] in your app.yaml.
81
+
This value will only be set if the input is a non-empty value. If a
82
+
non-empty value is given, the field values will be overwritten (not
83
+
merged). To remove all values, set the value to the literal string `{}`.
79
84
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.
85
+
To include build environment variables defined in another file, use the
86
+
[`includes` directive][includes-directive] in your `app.yaml`.
87
+
88
+
This will overwrite any duplicate key environment variables defined in the
89
+
`app.yaml`.
90
+
91
+
- <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
92
+
are comma-separated or newline-separated `KEY=VALUE`. Keys or values that
93
+
contain separators must be escaped with a backslash (e.g. `\,` or `\\n`)
94
+
unless quoted. Any leading or trailing whitespace is trimmed unless values
95
+
are quoted.
83
96
84
97
```yaml
85
-
with:
86
-
env_vars: |-
87
-
FOO=bar
88
-
ZIP=zap
98
+
env_vars: |-
99
+
FRUIT=apple
100
+
SENTENCE=" this will retain leading and trailing spaces "
89
101
```
90
102
91
-
Note: To include environment variables defined in another file, use the
92
-
[`includes` directive][includes-directive] in your app.yaml.
103
+
This value will only be set if the input is a non-empty value. If a
104
+
non-empty value is given, the field values will be overwritten (not
105
+
merged). To remove all values, set the value to the literal string `{}`.
106
+
107
+
To include environment variables defined in another file, use the
108
+
[`includes` directive][includes-directive] in your `app.yaml`.
109
+
110
+
This will overwrite any duplicate key environment variables defined in the
111
+
`app.yaml`.
112
+
113
+
- <a name="__input_image_url"></a><a href="#user-content-__input_image_url"><code>image_url</code></a>: _(Optional)_ Fully-qualified name
114
+
of the container image to deploy. For example:
115
+
116
+
us-docker.pkg.dev/cloudrun/container/hello:latest
117
+
118
+
or
93
119
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/`).
- `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.
122
+
- <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
123
+
deployment. If you do not specify a version, one will be generated for
124
+
you.
100
125
101
-
- `promote`: (Optional) Promote the deployed version to receive all traffic.
102
-
The default is `true`.
126
+
- <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.
103
127
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.
128
+
- <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
129
+
deploy command. This can be used to apply advanced features that are not
130
+
exposed via this GitHub Action.
106
131
107
132
```yaml
108
133
with:
109
134
flags: '--ignore-file=...'
110
135
```
111
136
112
-
See the [complete list of flags](https://cloud.google.com/sdk/gcloud/reference/app/deploy#FLAGS) for more information.
137
+
Flags that include other flags must quote the _entire_ outer flag value. For
flags](https://cloud.google.com/sdk/gcloud/reference/app/deploy#FLAGS) for
147
+
more information.
148
+
149
+
Please note, this GitHub Action does not parse or validate the flags. You
150
+
are responsible for making sure the flags are available on the gcloud
151
+
version and subcommand.
115
152
116
-
- `gcloud_version`: (Optional) Version of the gcloud CLI to use. The default value is `latest`.
153
+
- <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",
154
+
the latest available gcloud SDK version for the target platform will be
155
+
installed. Example: "290.0.1".
117
156
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.
157
+
- <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,
158
+
the latest or released version will be used. This is the equivalent of
159
+
running 'gcloud alpha COMMAND' or 'gcloud beta COMMAND'. Valid values are
160
+
`alpha`or `beta`. The default value is to use the stable track.
161
+
162
+
163
+
<!-- END_AUTOGEN_INPUTS -->
120
164
121
165
### app.yaml customizations
122
166
@@ -126,21 +170,25 @@ for more information.
126
170
127
171
## Outputs
128
172
129
-
- `name`: The fully-qualified resource name of the deployment. This will be of
130
-
the format "apps/<project>/services/<service>/versions/<version>".
173
+
<!-- BEGIN_AUTOGEN_OUTPUTS -->
174
+
175
+
- <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
176
+
format `apps/[PROJECT]/services/[SERVICE]/versions/[VERSION]`.
177
+
178
+
- <a name="__output_runtime"></a><a href="#user-content-__output_runtime"><code>runtime</code></a>: The computed deployment runtime.
179
+
180
+
- <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
181
132
-
- `runtime`: The computed deployment runtime.
182
+
- <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
183
+
deployment failed to start.
133
184
134
-
- `service_account_email`: The email address of the runtime service account.
185
+
- <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
186
+
given.
135
187
136
-
- `serving_status`: The current serving status. The value is usually
137
-
"SERVING", unless the deployment failed to start.
188
+
- <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
189
139
-
- `version_id`: Unique identifier for the version, or the specified version if
140
-
one was given.
141
190
142
-
- `version_url`: URL of the version of the AppEngine service that was
0 commit comments