gitlab

gitlab with two ssh keys not connecting (config updated)

可紊 提交于 2019-12-24 02:12:17
问题 I have a gitlab account on my mac which has the neccessary ssh key on it for my work account. I am trying to set up gitlab for all my personal projects. I have created a personal account on gitlab and created a ssh key. I have edited the config file in ~/.shh/ to look like this Host markgameforeverything.gitlab.com HostName gitlab.com User git PreferredAuthentications publickey IdentityFile ~/.ssh/personal.pub Host markbreadcreative.gitlab.com HostName gitlab.com PreferredAuthentications

How to show tests from another repository in GitLab CI

你。 提交于 2019-12-24 01:49:08
问题 So I have my project with it's unit tests and they show nicely as green or red circles when I do a merge request after I've configured the CI system in GitLab. But now I also have some integration tests, which reside in a separate repository (why you ask? because I have multiple micro-services that need to be tested together, and each has it's own repository). When I do a merge request on this integration tests' repository, they show nicely, but what I need it for those tests to show on the

Is it possible to install gem from private gitlab host from Heroku

笑着哭i 提交于 2019-12-24 01:21:55
问题 I have a private gitlab host, which host private codes and project, and I host my app in heroku, in that heroku app, we use Gemfile to manage dependence of that heroku app, one of those dependence is from private gitlab host. so my Gemfile is something like this: gem 'my_greate_gem', '0.0.1', :git => "http://myprivate_gitlab_host/private_gems/my_great_gem.git" It's seems there's not any tutorial mentions about using private gitlab host to hosting gem in Heroku, but I really don't want to use

trigger a build on a project when a commit pushes to another project

不打扰是莪最后的温柔 提交于 2019-12-24 00:47:01
问题 I have three projects A,B,C on gitlab with a gitlab-runner machine. Project A contains gitlab-ci.yml file which calls a script to build the program when there is a commit on A: build: stage: build script: - ./build-platform.sh A depends on B and C projects. How can I trigger a build on A when there is a commit on B or C. I cannot put B,C in A and I cannot convert build-platform.sh to a gitlab-ci.yml file syntax easily. 回答1: There's a couple ways of doing what you want, but they all rely on

Updating and repairing LFS when migrating repositories from Github to selfhosted Gitlab

﹥>﹥吖頭↗ 提交于 2019-12-24 00:37:10
问题 For my company I have to migrate all our company repositories from Github to our self hosted Gitlab-Server. The main problem I have is that we use Git-LFS for the most of our repositories. Therefore when cloning a repository I have to repair the Git-LFS by running git lfs fetch --all git lfs push remoteOnGitlab I'm writing on a script for that - since it are a lot of repositories - using the Github API to work off a list of all our repositories: #!/bin/bash ###_Adjust those_##################

mirror gitlab wiki to github

故事扮演 提交于 2019-12-24 00:36:59
问题 We are developing a software on a private GitLab server. Nobody from outside has access to this server. Now we somehow have to make our software available for everybody. Our Idea is to mirror the repository to GitHub which should be possible due to some research we did. We also maintain a wiki in GitLab. Is it also possible to mirror our GitLab wiki pages to GitHub? 回答1: At Github and Gitlab wikis are repositories with URLs like https://git$b.com/$user/$project.wiki.git so you clone your wiki

How to pull all alternative tags of a docker image?

让人想犯罪 __ 提交于 2019-12-24 00:24:16
问题 I administer a gitlab with build pipeline. All components are encapsulated in docker images from the official gitlab maintainer. Whenever I update - usually once a week - I need to check whether the gitlab/gitlab-runner-helper still works for the current latest version of gitlab. This can only be checked by executing a pipeline. If it does not work, the log tells me exactly what image it needs an I proceed to pull it. The image in question is also tagged with a latest tag, which I cannot use,

Do GitHub and GitLab support git clone's --filter parameter?

早过忘川 提交于 2019-12-23 21:33:15
问题 I want to use git's partialClone feature. In this answer I saw the git clone --filter=tree:none <repo> command. But when trying to execute on github, the prompt warning: filtering not recognized by server, ignoring . It did not work. I want to know if it is not supported by the GitHub website, or if there is a problem with my settings. I asked the feedback staff of GitHub and have not got the answer from the technician. 回答1: This almost certainly isn't supported by GitHub or GitLab yet. The -

ssh: Could not resolve hostname git: Name or service not known fatal: Could not read from remote repository

丶灬走出姿态 提交于 2019-12-23 19:34:56
问题 After I switched from HTTPS to SSH for my repo then I received this error when pushing to origin master: ssh: Could not resolve hostname git: Name or service not known fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. I also add my ssh in the gitlab. What should I do? 回答1: I was getting the same error. I changed the [remote "origin"] url value in .git/config file and now it's working fine. Previously: https://git

Using GitLab API to set external issues tracker settings?

白昼怎懂夜的黑 提交于 2019-12-23 17:22:54
问题 I'm using GitLab with an external issue tracker (JIRA), and it works well. My problem is when I create a new GitLab project (using API), I have to go the GitLab's project settings and manually select the issue tracker I want to use and manually enter the project's id of my external issue tracker. This screen will be more eloquent: (source: bayimg.com) (The two fields I am talking about are " Issue tracker " and " Project name or id in issues tracker ") So here is my question: is there any way