Hello everyone !

I have a quite complicated question/setup. I have my software on a Gitlab repo, and I’m publishing the software on flathub. everytime I do a release on Gitlab, I need to also update the flathub repo with the commit and the release tag, and I’m thinking this could be automated with Gitlab CI/CD.

Exemple repo :

When modifying the Flathub repo, I need to create a PR with my modifications and wait for the build process to complete. Then, I can merge the request.

Do you have any idea how can I automate the flathub part everytime I create a new release on Gitlab ?

My explaination might be a bit blurry, if that’s the case, please feel free to ask for clarification.

Thank you for your time and answers!

  • user91@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    5 months ago

    Why not use a lightweight bash or git image and do your gitops in the job’s script block? If you don’t want to mess with your build job, then a job in the upstream stage of the build would create the PR, the build runs, another job would then merge the PR if the build succeeds.