diff --git a/.github/workflows/gcp-setup.yml b/.github/workflows/gcp-setup.yml index f9d66f5..cb7dc7c 100644 --- a/.github/workflows/gcp-setup.yml +++ b/.github/workflows/gcp-setup.yml @@ -5,9 +5,9 @@ name: GCP Setup on: push: - # branches: [main] - # paths: - # - ".github/workflows/gcp-setup.yml" + branches: [master] + paths: + - ".github/workflows/gcp-setup.yml" jobs: # These run in parallel because gcp-services and setup-networking only make changes on the first run. diff --git a/.github/workflows/soap-api.yml b/.github/workflows/soap-api.yml index 480b7d8..6f60848 100644 --- a/.github/workflows/soap-api.yml +++ b/.github/workflows/soap-api.yml @@ -32,6 +32,7 @@ jobs: --update-env-vars=FUNCTION_URL=${function_url},PROJECT_NUMBER=${project_number},WSDL=./wsdl.xml - name: Update ofsted-stub container with its own url (not ideal) run: | + project_id=$(gcloud config get-value project) its_own_url=$(gcloud run services describe ofsted-stub --platform=managed --region=europe-west1 --format="value(status.url)") gcloud run deploy ofsted-stub --image=gcr.io/${project_id}/ofsted-stub \ --platform=managed --region=europe-west1 --allow-unauthenticated \