-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
31 lines (25 loc) · 883 Bytes
/
makefile
File metadata and controls
31 lines (25 loc) · 883 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
include .env
deploy-claims:
gcloud builds submit --config ./deploy/claims.yaml
deploy-policies:
gcloud builds submit --config ./deploy/policies.yaml
publish-claims:
APOLLO_KEY=$(APOLLO_KEY) \
rover subgraph publish $(APOLLO_GRAPH_REF) \
--schema ./subgraphs/claims/claims.graphql \
--name claims \
--routing-url $(CLAIMS_ROUTING_URL)
publish-policyholder:
APOLLO_KEY=$(APOLLO_KEY) \
rover subgraph publish $(APOLLO_GRAPH_REF) \
--schema ./subgraphs/policyholder/policyholder.graphql \
--name policyholder
publish-policies:
APOLLO_KEY=$(APOLLO_KEY) \
rover subgraph publish $(APOLLO_GRAPH_REF) \
--schema ./subgraphs/policies/policies.graphql \
--name policies \
--routing-url $(POLICIES_ROUTING_URL)
deploy-router:
gcloud builds submit --substitutions=_APOLLO_KEY=$(APOLLO_KEY),_APOLLO_GRAPH_REF=$(APOLLO_GRAPH_REF) \
--config ./router/cloudbuild.yaml