Function registerDeployments

Registers all given deployments via registerDeployment after awaiting the promise.