Skip to content

Commit

Permalink
[WORKFLOW] Subgraph deloy all networks (#1760)
Browse files Browse the repository at this point in the history
* added VENDOR_NETWORKS variable

* decaled variable
  • Loading branch information
mmd-afegbua authored and hellwolf committed Jan 23, 2024
1 parent d57e5e1 commit ceb9c1a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/subgraph/tasks/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ SATSUMA_NETWORKS=( "polygon-mainnet" "xdai-mainnet" "eth-mainnet" "eth-sepolia"
# shellcheck disable=SC2034
SUPERFLUID_NETWORKS=( "polygon-zkevm-testnet" "polygon-mainnet" "eth-sepolia" "base-goerli" "eth-mainnet" "xdai-mainnet" "base-mainnet" "optimism-mainnet" "arbitrum-one")

declare -A VENDOR_NETWORKS=(
["graph"]="${GRAPH_NETWORKS[@]}"
["satsuma"]="${SATSUMA_NETWORKS[@]}"
["superfluid"]="${SUPERFLUID_NETWORKS[@]}"
)

VENDOR=""
NETWORK=""
DEPLOYMENT_ENV=""
Expand Down Expand Up @@ -163,7 +169,7 @@ fi

# Handle all vs specific network
if [ "$NETWORK" == "all" ]; then
for network in "${NETWORKS_REF[@]}"; do
for network in ${VENDOR_NETWORKS[$VENDOR]}; do
deploy_to "$VENDOR" "$network"
done
else
Expand Down

0 comments on commit ceb9c1a

Please sign in to comment.