Mirror from github to gitlab
Asked Answered
I

1

19

In Gitlab it is now possible to automatically mirror remote GIT repo: http://docs.gitlab.com/ee/workflow/repository_mirroring.html

Synchronization is either done manually or via gitlab cron script (running every hour).

I would like to sync in this way my github repo and run Gitlab CI jobs using my own runners.

Is is possible to automatize sync task, i.e. via Github webhooks ? Do you know if there is any other way to do it with Gitlab infrastructure ?

I would like to avoid hacking like: - cloning github repo in gitlab runner - running my own cron jobs which do sync more often

Insistency answered 31/5, 2016 at 13:16 Comment(1)
Have you been able to find a solution?Grimbly
I
7

Mirror does work, but it's slow. If your goal is to run gitlab-ci for a github repository, good news, gitlab has released a new version which lets you use github.com repository with gitlab-ci:
https://about.gitlab.com/2018/03/22/gitlab-10-6-released/

GitLab CI/CD for GitHub feature a part of our GitLab.com Free tier

Instructions:

Interfluent answered 23/3, 2018 at 13:30 Comment(3)
This is only free until next month, after which it will be paid only. I'm experimenting with using github.com/samrocketman/gitlab-mirrors to mirror projects... personally I think this is an area that GitLab is missing an opportunity. Best way to get people to use your full product is to lure them in with some great feature that's the best and can work with their existing tool(s). Wheee!Jerky
They extended it until September 2019Daytoday
Also seems to bit be available at all to self-hosted users. Mirroring will probably be ideal.Prefatory

© 2022 - 2024 — McMap. All rights reserved.