7

GitLab has this nice 'deploy keys' feature useful for CI servers to have read and pull access to a repository as they usual don't need more than that. However, I need to create and push a tag to the repository to tag each release that is built from the 'master' branch.

To be more specific, I have a Jenkins job that will build a release version from the 'master' branch every time a build is triggered. If the job is successful, I want to tag the 'master' branch HEAD with the release number for future reference.

I believe I can't do this using the 'deploy keys' feature. So how do I go about and do this? I'm not sure I can create an extra user, just for this, and give him access to the project... Cause every user with GitLab access is tied to LDAP.

Any suggestions?

4

1 回答 1

4

2017 年更新:自 GitLab 8.16(2017 年 1 月)和issue 1376以来,您现在可以添加具有写访问权限的部署密钥。

https://gitlab.com/gitlab-org/gitlab-ce/uploads/7bb8e205515a77baa9973a1b33455487/image.png


原始答案(2013 年):部署密钥没有(也不会)对项目具有写访问权(如issue 2134中所述)是正确的。

这给你留下了:

  • 创建 LDAP 通用帐户(如果这些帐户在您的组织中获得授权)
  • 在单独的 LDAP 服务器中创建一个虚拟帐户(但gitlab omniauth-ldap不支持多个 LDAP 声明)。
于 2013-07-29T06:04:00.530 回答