Skip to content

Commit

Permalink
OUTPOST-181 proxy function
Browse files Browse the repository at this point in the history
  • Loading branch information
apricot13 committed Jun 26, 2024
1 parent 80b399a commit 99d3ac4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/proxy-function.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 99d3ac4

Please sign in to comment.