dazzling-elephant-33766
04/02/2024, 4:13 PMgoogle_cloud_function
targets. The docs state
You can use any of the various Google Cloud methods to upload your zip file, such as the Google Cloud console or the Google Cloud CLI.the only way I’ve successfully managed to get this working is uploading this zip file to google cloud storage with
gcloud storage cp dist/functions.example/cloud_function.zip <gs://bucket>
then gcloud functions deploy --source=<gs://bucket/cloud_function.zip>
But this requires you know the bucket/location upfront. So instead I’ve been unzipping the binary every time.
gcloud functions deploy test --source=dist/functions.example/cloud_function.zip
gives me a
ERROR: (gcloud.functions.deploy) Invalid value for [--source]: Provided path does not point to a directory
Is it possible to do some sort of variant of layout="loose"
in the google_cloud_function
target (similar to pex_binary
) So I can avoid having to unzip the pex?broad-processor-92400
04/03/2024, 9:11 AMdazzling-elephant-33766
04/14/2024, 7:13 PM