Gitlab CI/CD : How to update flatpak (flathub) when a new release is created
from Krafting@lemmy.world to programming@programming.dev on 09 Jun 11:07
https://lemmy.world/post/16344887

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!

#programming

threaded - newest

user91@lemmy.world on 09 Jun 13:53 collapse

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.