简体   繁体   中英

Setting up GIT for development server

Currently we have the following situation/problem:

Our developers work local

Developer pushes his changes to the repository on the git server ( all is fine up until now, because on GitLab I've set the ssh-key and the person can clone/pull/push )

On the development server I need this to be pulled from git and here's where the issue start.

We have 1 development server , with >20 websites , so as I see it that's 20 users that I need to put in git seeing we plan on using it for all and create an ssh-key for each of those users seperatly , to be able to have the acces to pull the changes that were made to the repository)

The above basically goes the same for our live server.

I am at an loss how to approach this, is there a centralised way that I can simply give acces on server level to pull the changes? I have been looking at it for about 1.5 months now, might be looking at it the wrong way.

To add: We have around 14 servers running, so there's that.

From: Gitlab SSH Readme

Deploy keys

Deploy keys allow read-only access to multiple projects with a single SSH key.

This is really useful for cloning repositories to your Continuous Integration (CI) server. By using deploy keys, you don't have to setup a dummy user account.

If you are a project master or owner, you can add a deploy key in the project settings under the section 'Deploy Keys'. Press the 'New Deploy Key' button and upload a public SSH key. After this, the machine that uses the corresponding private key has read-only access to the project.

You can't add the same deploy key twice with the 'New Deploy Key' option. If you want to add the same key to another project, please enable it in the list that says 'Deploy keys from projects available to you'. All the deploy keys of all the projects you have access to are available. This project access can happen through being a direct member of the project, or through a group. See def accessible_deploy_keys in app/models/user.rb for more information.

Deploy keys can be shared between projects, you just need to add them to each project.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM