-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,19 +23,20 @@ jobs: | |
project_id: ${{ secrets.PROJECT_ID }} | ||
# Deploy form function | ||
- name: Deploy proxy function | ||
# ofsted_stub=$(gcloud run services describe ofsted-stub --platform=managed --region=europe-west1 --format="value(status.url)") | ||
# ENDPOINT_SERVICE=${ofsted_stub}, | ||
run: | | ||
cd proxy-function | ||
project_id=$(gcloud config get-value project) | ||
project_number=$(gcloud projects describe $project_id --format="value(projectNumber)") | ||
ofsted_stub=$(gcloud run services describe ofsted-stub --platform=managed --region=europe-west1 --format="value(status.url)") | ||
gcloud functions deploy ofsted_feed_proxy \ | ||
--runtime=python312 --region=europe-west2 --memory=256MB --trigger-http \ | ||
--no-allow-unauthenticated \ | ||
--vpc-connector ofsted-egress-vpcc \ | ||
--egress-settings all \ | ||
--timeout=540 \ | ||
--service-account=${project_number}[email protected] \ | ||
--set-env-vars ENDPOINT_SERVICE=${ofsted_stub},PROJECT_ID=${project_id} | ||
--set-env-vars PROJECT_ID=${project_id} | ||
- name: Permission to call the function | ||
run: | | ||
project_id=$(gcloud config get-value project) | ||
|