-
-
Notifications
You must be signed in to change notification settings - Fork 15
2. Push mirror configuration guide
Adam Schubert edited this page Jun 7, 2018
·
1 revision
Push mirror pushes changes from your GitlabCE installation to remote GIT repository (GitHub, etc.) To create your first push mirror follow these steps
- Click on "Push mirror" in main menu
- Click on "Add +"
- Fill in form required fields:
- Fill in "Project mirror" that is GIT repo URI you want to push to (eg. [email protected]:Salamek/gitlab-tools.git), it must exists and be empty!
- Fill in "Search for project" select project in your GitLab CE installation you want to mirror.
- Click on "Save"
- Now you should see newly created mirror in "Push mirror" section
- To get actual mirroring work you must allow your GitLab-Tools user to access that repository wia configured "Project mirror" URI:
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. If you use SSH, make sure your deploy key on target repository has writtable permission.
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 |