Hi everyone. I am tinkering with dagger, already powering some projects with it and I am still a bit unsure about how to reuse pipelines and code written in dagger in other repositories that can basically follow same instructions.
The environment here is around 20 applications/microservices written in .NET, now being migrated to .NET 6. I have a generic pipeline in dagger that builds and pushes the image where I tell it to, from what images and git repository. I have built the pipelines to binaries, and included them in the runners that run the pipelines as a CLI tool
What I mostly see in other projects (for example https://github.com/thechangelog/changelog.com) is the dagger code included in the repository and pipeline running the code directly. The difference is that this is probably the only repository where this specific pipeline is being used, so my usecase is quite different.
I'm afraid that even if I make my pipelines into a package and include that into projects where it's being used I would have more unnecessary boilerplate being copypasted everywhere. But what I have to do now is distribute the executable everywhere where it's used (which is now only like 3 runners so no big deal).
What do you guys think?