Claudius Heine <ch@denx.de> writes:
Hi Dan,
thanks for the reply.
On 2022-08-18 09:05, Dan Čermák wrote:
Hi Claudius,
Claudius Heine <ch@denx.de> writes:
Hi,
I am rather new to OBS and I am currently looking into ways to integrate CI with OBS. We are using a private Gitlab server that also has some CI runners. We want to build packages for Debian and Ubuntu.
The privat repo hosts the unpacked debianized project sources (directory containing the project + a `/debian` directory containing package metadata), which AFAIK aren't supported by OBS, it only supports Debian source packages (*.dsc, *.debian.tar.xz and *.orig.tar.gz, etc. files).
So the general idea would be to use the CI on Gitlab to package the source packages and then pushing those via `osc add ... && osc ci` from the CI runner to OBS and let OBS take care of managing the APT repo and building for all different archs etc.
You could alternatively try out the experimental scmsync feature [1]. This allows you to put either individual packages or whole repositories into git, let OBS just pull the sources from the repository and build them for you. That would render the whole authentication story moot as all you'd need would be a repository with the package sources ready to be build and reachable by OBS.
Interesting idea. However the private GitLab instance is not directly reachable from the public internet. So OBS will have trouble cloning any repos from it.
Can a git repo be pushed to OBS from a remote location instead of OBS trying to pull the repo?
No. But you could push from your CI runners to a publicly reachable repository and let OBS pull from that... There's another catch, currently the scmbridge does not automatically pull in new changes from git. It syncs only when you trigger a rebuild, but Adrian said that this would be fixed soon. Since you can trigger builds using osc tokens, this part wouldn't at least require putting your password into gitlab CI Cheers, Dan -- Dan Čermák <dcermak@suse.com> Software Engineer Development tools SUSE Software Solutions Germany GmbH Frankenstrasse 146 90461 Nürnberg Germany (HRB 36809, AG Nürnberg) Managing Director/Geschäftsführer: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman