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
+17-10Lines changed: 17 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,11 @@ limitations under the License.
18
18
This action deploys your function source code to [Cloud Functions](cloud-functions) and makes the URL
19
19
available to later build steps via outputs.
20
20
21
+
**This GitHub Action is _declarative_, meaning it will overwrite any values on
22
+
an existing Cloud Function deployment.** If you manually deployed a Cloud
23
+
Function, you must specify **all** parameters in this action. Any unspecified
24
+
values will be reverted to their default value (which is usually "null").
25
+
21
26
## Prerequisites
22
27
23
28
This action requires:
@@ -68,30 +73,27 @@ jobs:
68
73
69
74
- `region`: (Optional) [Region](https://cloud.google.com/functions/docs/locations) in which the function should be deployed. Defaults to `us-central1`.
70
75
71
-
- `env_vars`: (Optional) List of key-value pairs to set as environment variables in the format:
72
-
`KEY1=VALUE1,KEY2=VALUE2`. All existing environment variables will be
73
-
removed, even if this parameter is not passed.
76
+
- `env_vars`: (Optional) List of key-value pairs to set as environment variables in the format: `KEY1=VALUE1,KEY2=VALUE2`. All existing environment variables will be removed, even if this parameter is not passed.
74
77
75
-
- `env_vars_file`: (Optional) Path to a local YAML file with definitions for all environment variables. An example env_vars_file can be found [here](tests/env-var-files/test.good.yaml). Only one of env_vars or env_vars_file can be specified.
78
+
- `env_vars_file`: (Optional) Path to a local YAML file with definitions for all environment variables. An example env_vars_file can be found [here](tests/env-var-files/test.good.yaml). All existing environment variables will be removed, even if this parameter is not passed. If `env_vars` is also given, values in `env_vars` take precendence over these values.
76
79
77
-
- `labels`: (Optional) List of key-value pairs to set as function labels in the form label1=VALUE1,label2=VALUE2.
80
+
- `labels`: (Optional) List of key-value pairs to set as function labels in the form `label1=VALUE1,label2=VALUE2`. All existing labels will be removed, even if this parameter is not passed.
78
81
79
82
- `source_dir`: (Optional) Source directory for the function. Defaults to current directory.
80
83
81
-
- `project_id`: (Optional) ID of the Google Cloud project. If provided, this
82
-
will override the project configured by gcloud.
84
+
- `project_id`: (Optional) ID of the Google Cloud project. If provided, this will override the project configured in the environment.
83
85
84
86
- `description`: (Optional) Description for the Cloud Function.
85
87
86
-
- `vpc_connector`: (Optional) The VPC Access connector that the function can connect to..
88
+
- `vpc_connector`: (Optional) The VPC Access connector that the function can connect to.
87
89
88
90
- `vpc_connector_egress_settings`: (Optional) The egress settings for the connector, controlling what traffic is diverted through it.
89
91
90
92
- `ingress_settings`: (Optional) The ingress settings for the function, controlling what traffic can reach it.
91
93
92
94
- `secret_environment_variables`: (Optional) List of key-value pairs to set as
93
-
environment variables at runtime of the format "KEY1=SECRET_VERSION_REF" where
94
-
SECRET_VERSION_REF is a full resource name of a Google Secret Manager secret
95
+
environment variables at runtime of the format `KEY1=SECRET_VERSION_REF` where
96
+
`SECRET_VERSION_REF`is a full resource name of a Google Secret Manager secret
95
97
of the format "projects/p/secrets/s/versions/v". If the project is omitted, it
96
98
will be inferred from the Cloud Function project ID. If the version is
0 commit comments