Closed d10r closed 3 months ago
@mmd-afegbua is it still done; if not, it still worth doing?
Implementation of this was de-priotized because of the switch to Goldsky as we needed to perfect how to deploy and promote new subgraphs there. I've done that, we can now start working on this.
Pull request ready for review: https://github.com/superfluid-finance/protocol-monorepo/pull/2003
What
If deploying to multiple networks and/or vendors via GH workflow, a matrix (ideally 2-dimensional) is used to map each deployment (vendor & network) to a job
AC
How
The workflow https://github.com/superfluid-finance/protocol-monorepo/blob/dev/.github/workflows/handler.deploy-production-subgraphs.yml currently just forwards the job of iterating through "all" networks to https://github.com/superfluid-finance/protocol-monorepo/blob/dev/packages/subgraph/tasks/deploy.sh. That script contains then figures out what "all" means for the given vendor and iterates through them. We instead want to dynamically create a matrix of networks to be used if "all" networks are selected, and map the deployment step to a job for each. The dynamic part is needed in order to avoid having to maintain redundant mappings in the subgraph package and in a workflow file.