Skip to content

Commit

Permalink
CNJR-0000: Use Gen1 Gcloud function env
Browse files Browse the repository at this point in the history
Fixes "ERROR: (gcloud.functions.deploy) Invalid value for [--runtime]: python37 is not a supported runtime on GCF 2nd gen.
  Use `gcloud functions runtimes list` to get a list of available runtimes" error in GCP test
  • Loading branch information
szh committed Sep 12, 2024
1 parent 7d97fcd commit ebc15ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/test_suites/authenticators_gcp/deploy_function.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ deploy_function() {
cd "$GCF_SOURCE_DIR"

echo "-- Deploying function: $GCF_FUNC_NAME"
gcloud functions deploy "$GCF_FUNC_NAME" --runtime python37 --trigger-http --quiet
gcloud functions deploy "$GCF_FUNC_NAME" --no-gen2 --runtime python37 --trigger-http --quiet

echo '-> deploy_function done'
}
Expand Down

0 comments on commit ebc15ca

Please sign in to comment.