One tool that can be used in a deployment hook which supports the API of several dozen DNS providers:

* https://github.com/dns-lexicon/dns-lexicon

The list of API integrations provided by the lego project looks quite impressive. https://go-acme.github.io/lego/dns/index.html