简体   繁体   English

如何配置GitLab将存储库镜像到Gemfury?

[英]How do I configure GitLab to mirror my repositories to Gemfury?

I use GitLab.com for my PHP repository management. 我将GitLab.com用于我的PHP存储库管理。 However, I package my repositories for use with Composer. 但是,我打包了我的存储库以与Composer一起使用。 Right now, I'm using Satisfy to generate my packages, but this solution is not well developed, and has problems. 现在,我正在使用Satisfy来生成我的软件包,但是此解决方案尚未很好地开发,并且存在问题。 I have decided to move to a commercial service, and GemFury seemed to be the best option. 我决定转向商业服务,而GemFury似乎是最好的选择。

I want to have GitLab mirror my repositories to GemFury, so that GemFury can generate a Composer-style repository automatically for me. 我想让GitLab将我的存储库镜像到GemFury,以便GemFury可以为我自动生成Composer风格的存储库。

I attempted to use the Repository Mirroring settings in GitLab, but continually receive errors, of the form "fatal: remote error: Git repository not found". 我试图在GitLab中使用“存储库镜像”设置,但不断收到错误,形式为“致命:远程错误:找不到Git存储库”。 I understand what that means, but it is to be expected that the remote repository does not exist yet. 我理解这意味着什么,但是可以预期远程存储库尚不存在。

I feel that I must be missing something, but I'm not sure what it is. 我觉得我一定很想念东西,但是我不确定那是什么。

Thanks to Iron Bishop, I was directed here: Message 'src refspec master does not match any' when pushing commits in Git 感谢Iron Bishop,我被引导到这里: 在Git中推送提交时,消息“ src refspec master不匹配”

The solution was to change my git push to explicitly push the master branch of HEAD. 解决方案是更改我的git push以显式推送HEAD的master分支。 My .gitlab-ci.yml now looks like this... 我的.gitlab-ci.yml现在看起来像这样...

fury:
  script:
    - git remote add fury https://centralstationmarketing:14SAHV-r9GN71uqsu3ayYLNSf3onhLbW4@git.fury.io/centralstationmarketing/acela.git
    - git push --tags fury HEAD:master

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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