Hi all. I'm absolutely thrilled to try Dagger as main CI/CD tool. I have a question (a stupid one for sure):
We have a lot of microservices developed in different languages. Services with the same technologies (eg python) are developed using a sort of standard (poetry as package manager, fastapi, ...) and the Dockerfiles are mainly copied and pasted for this reason. I was looking at a way to effectively centralize the code to be used by different repository.
I was thinking at a repository containing the definition of all Dockerfiles and Pipelines (in dagger way) which can be used by other repositories. Which is the best way to achieve that?
Do you think that i should create a simple go package with utils and in each repo create the ci package with dagger init ... which are using this custom package, or you think that is better to write all dagger functions in the repo and call them in (eg) github actions using dagger command (dagger -m github.com/shykes/daggerverse/hello@v0.1.2 call hello)?