-
-
Notifications
You must be signed in to change notification settings - Fork 15
1. Pull mirror configuration guide
Adam Schubert edited this page Jun 17, 2018
·
2 revisions
Pull mirror pulls changes from remote GIT repository (GitHub, etc.) to your GitlabCE installation To create your first pull mirror follow these steps
- Click on "Pull mirror" in main menu
- Click on "Add +"
- Fill in form required fields:
- Fill in "Project mirror" that is GIT repo URI you want to mirror (eg. [email protected]:Salamek/gitlab-tools.git)
- Fill in "Project name" that is name of project that will be created in your GitLab CE installation
- Fill in "Search for group" select group in your GitLab CE installation where this mirrored project will be created. It can be separated group like "Mirrors" or any other group or subgroup.
- Click on "Save"
- Now you should see newly created mirror in "Pull mirror" section
- To get actual mirroring work, we must register push web hook to mirrored repository and allow your GitLab-Tools user to access that repository wia configured "Project mirror" URI:
How to register push web hook:
How to allow access to mirrored repository:
For SSH access you will need GitLab-Tools user public key, you can find it on "Home" page.
Git provider | SSH URI | HTTPS URI |
---|---|---|
GitHub | https://developer.github.com/v3/guides/managing-deploy-keys/ | https://docs.gitlab.com/ee/workflow/repository_mirroring.html#setting-up-a-push-mirror-from-gitlab-to-github |
GitLab | https://docs.gitlab.com/ee/ssh/#deploy-keys | https://username:[email protected]:group1/project1.git as format of your URI should be fine |