https://github.com/lucax88x/dotnet-template/tree/main/build
I'm probably over-engineering it.
it's a GO cli using cobra & viper (the one used by kubectl and gh just to understand) and has several primitives to perform classic CI and CD operations, like, build, restore, publish test results, dockerize, and push new version to gitops for deploys.
Hope it can help somebody.