Skip to content

Commit 52ae621

Browse files
author
Keith Halsall
committed
Fix contract router issues
1 parent 0fc2766 commit 52ae621

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/create_studio_project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
--header 'content-type: application/json' \
8080
--header 'X-API-Key: ${{ secrets.APOLLO_USER_KEY }}' \
8181
--url 'https://graphql.api.apollographql.com/api/graphql' \
82-
--data '{"query":"mutation UpdateURL($name: String!, $graphId: ID!, $url: String) {\n graph(id: $graphId) {\n variant(name: $name) {\n updateURL(url: $url) {\n createdAt\n }\n }\n }\n}","variables":{"name":"public","graphId":"${{vars.ACTOR}}-${{vars.WORKSHOPID}}${{ env.GEN }}","url":"${{ env.URL }}"}}'
82+
--data '{"query":"mutation UpdateURL($name: String!, $graphId: ID!, $url: String) {\n graph(id: $graphId) {\n variant(name: $name) {\n updateURL(url: $url) {\n createdAt\n }\n }\n }\n}","variables":{"name":"Public","graphId":"${{vars.ACTOR}}-${{vars.WORKSHOPID}}${{ env.GEN }}","url":"${{ env.URL }}"}}'
8383
8484

8585
- name: Set Subscription URL

.github/workflows/deploy-router.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ jobs:
4040
4141
- name: Deploy contract router to Cloud Run
4242
run: |
43-
gcloud run deploy ${{vars.ACTOR}}-contractrouter --image gcr.io/summit-enterprise-workshop/jesse-apollo-router:latest \
43+
gcloud run deploy ${{vars.ACTOR}}-${{vars.WORKSHOPID}}-contractrouter --image gcr.io/summit-enterprise-workshop/jesse-apollo-router:latest \
4444
--command=/dist/router \
4545
--set-secrets=/dist/config/router.yaml=${{vars.ACTOR}}:latest \
46-
--set-env-vars "APOLLO_ROUTER_HOT_RELOAD=true,APOLLO_KEY=${{ vars.TOKEN }},APOLLO_GRAPH_REF=${{vars.ACTOR}}-${{vars.WORKSHOPID}}${{env.GEN}}@public" --platform managed --region us-central1 \
46+
--set-env-vars "APOLLO_ROUTER_HOT_RELOAD=true,APOLLO_KEY=${{ vars.TOKEN }},APOLLO_GRAPH_REF=${{vars.ACTOR}}-${{vars.WORKSHOPID}}${{env.GEN}}@Public" --platform managed --region us-central1 \
4747
--allow-unauthenticated

0 commit comments

Comments
 (0)