#Can dagger translate (compile? dagger-

1 messages · Page 1 of 1 (latest)

wary basalt
#

Do you mean, for example, to take a GitHub Pull Request (PR) payload (sent to your translation middleware by a webhook, for example) and construct a GitLab Merge Request (MR) payload using that info, and hit the GitLab API with it?

Def doable lots of ways, but sounds more like a service you'd like to have running to receive the webhook PR payload, translate to MR and post, so not something Dagger would be the best tool for, necessarily.

thorn wren
#

Yes, exactly.
Part of the "portability" of Dagger is that I can avoid vendor lock-in by writing my pipeline in Dagger (CUE) and take it from GitHub Action to GitLab, but the Event payload triggers for each of those payoads would be different.

Something in Dagger must have an awareness of the GitHub Pull Request (PR) payload. Is there a translation mechanism in Dagger's codebase somewhere to get that to spit out a facsimile of a GitLab Merge Request (MR) payload?

thorn wren
#

@wary basalt So it appears that https://blog.direktiv.io/integrating-webhooks-from-gitlab-github-with-direktiv-as-cloudevents-295e0ced7a5d
Does pretty closely what I want, so I would like to convert that to Dagger (CUE), or follow the approach where something like it was generated from Dagger pipelines like https://github.com/shykes/gha

Medium

We’ve previously written on the importance of integrating DevOps platforms into Direktiv to allow for seamless interaction between DevOps…

GitHub

Generate Github Actions configurations from Dagger pipelines - shykes/gha