this post was submitted on 09 Jun 2024
24 points (92.9% liked)

Programming

17025 readers
84 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS
 

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!

top 1 comments
sorted by: hot top controversial new old
[–] user91@lemmy.world 3 points 3 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.