forked from CirclesUBI/circles-subgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from BootNodeDev/feature/CirclesUBI#25-host-new…
…-subgraph feature: deploy subgraph in a hosted service
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 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
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
source "./scripts/common.sh" | ||
|
||
# Export environment variables | ||
export_env $1 | ||
|
||
# Export subgraph version from package.json | ||
get_version | ||
|
||
# Prepare manifest | ||
build_manifest | ||
|
||
# Auth | ||
exec_graph auth "--product hosted-service" | ||
|
||
# Deploy graph | ||
exec_graph deploy "--product hosted-service $SUBGRAPH_NAME --version-label $SUBGRAPH_VERSION" | ||
|
||
# Cleanup | ||
clear_manifest |