Adding CI/CD to a mirror/fork of a GitHub project

Hi,

We’ve been trying to find a solution to the following problem space.

  1. We utilise a few OSS projects that have their source on GitHub (but could also be Gitlab or Bitbucket, etc).
  2. Some of these either do not have any CI/CD or do not provide any build artefacts in a manner we can consume in our projects.
  3. We’d like to mirror/fork these OSS projects from Github and keep them in sync with the upstream project and add our own CI/CD to this to generate the build artefacts we require (we’re happy to bear the cost of the CI/CD to do this).
  4. We only use GitLab SaaS (gitlab.com) for both hosting the code and the CI/CD.
  5. We don’t need to push code back to the GitHub upstream from our fork, any work like that will be done using Github’s PR system.

The only thing I can think of that would work would be to utilise the upstream project as a submodule and add our CI/CD to it that way.

Has anyone else solved this in a simpler or more reliable way?

2 Likes

Hi, did you find any solution?

Nope, nothing from the community, so we’re pretty much having to use the submodule approach as a nice and clean way forward.

Thank you for taking the time to answer. :slight_smile: I’ll try that.