Questions tagged [gitlab]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
9 views

GitLab, CI/CD and CppCheck

I'm trying to make YAML file for GitLab's CI/CD which will run CppCheck before performing a merge. The CppCheck has to be successful (no "severity="error" in the xml output file). The ...
0
votes
0answers
23 views

Gitlab Installation Permission

I am trying to install gitlab-ee_13.12.3-ee.0_amd64.deb from /root/ on my debian 10.5 vps server. I used #apt install -f ./gitlab-ee_13.12.3-ee.0_amd64.deb however at the end of the install, I get ...
0
votes
2answers
29 views

Setting up ssh keys to connect to gitlab

*Note: Using windows 10 (I know, I know... that's what they gave me :/) Hi all, I'm new to using GitLab, but my company has their own GitLab server where I'm to house repos for my projects, push ...
0
votes
0answers
37 views

The term 'apt' is not recognized as the name of a cmdlet

I'm new to this. While running yml in gitlab CI, I encounter this error (Windows local) apt : The term 'apt' is not recognized as the name of a cmdlet, function, script file, or operable program. ...
1
vote
0answers
75 views

Get https certificate for GitLab server over tor/onion domain?

To host a GitLab server over Tor I would like to get an https certificate. Gitlab provides the opportunity to use a let's encrypt certificate. Let's encrypt requires a domain for registration, hence I ...
0
votes
1answer
29 views

List of JSON strings as command arguments

I've been working with GitLab CI recently to automate some busy tasks, namely auto releasing binaries for version tags. For those who don't know Gitlab CI, it is very straightforward. It pulls the ...
0
votes
0answers
16 views

System call failure when executing CI script in Docker

I'm currently setting up GitLab CI/CD. The Runner is installed on a Windows Server 2019 VM which has Docker Engine running. My gitlab-ci.yml looks something like this: variables: GIT_STRATEGY: clone ...
1
vote
1answer
51 views

Git pull doesn't ask for passphrase

I use ssh keys for authentication with various remote git repositories. I have project A hosted in Azure and project B on GitLab. My ~/.ssh/config looks like so: $ cat ~/.ssh/config Host vs-ssh....
1
vote
1answer
41 views

Ssh keys on docker gitlab-ce

The announcement for GitLab 13.10 has a deprecation notice for using authorized_keys for ssh keys: The first mechanism (integration via authorized keys ) is vulnerable to both race conditions and out-...
0
votes
0answers
9 views

Gitlab repository — web client — how does one sort by columns (such as “Last update”)

For the Gitlab repository (the web client), how does one sort by columns,such as "Last update". I realize there is a command-line interface, but I want to do this in the web-client. It seems ...
0
votes
0answers
18 views

How can I mapping local user to LDAP user on GitLab?

I had a Gitlab system before and created many of local users for engineers, now I built an Windows AD server and going to setting LDAP authentication for Gitlab, so how can I keep the previous local ...
0
votes
0answers
15 views

How do you allow SSH connections to the host terminal and a dockerized Gitlab instance on the same machine?

I'm currently setting up an Ubuntu 20.04 server with a Docker Engine which runs a self-hosted Gitlabinstance. I want to be able to connect to the host's terminal via SSH and I want to be able to ...
0
votes
1answer
12 views

shell script to get file names from a path and store in variable in ubuntu linux

I am trying to find the file names in a path. Using following script, but getting issue when tries to put that name in a variable: for file in "${PROJECT_DIR}/temp_namespaces"/* do echo &...
1
vote
1answer
40 views

Safest Way to Deny Access to All Files for Git Runner Service Account?

I have a GitLab Runner and my coworkers are worried commands like - Remove-Item $SOME_FOLDER* -Recurse -Force can be dangerous. For example, if the GitLab Runnier has admin privileges, then ...
0
votes
0answers
9 views

gitlab-runner clone base vm with old state

I am trying to set-up gitlab CI with custom gitlab-runner + virtualbox executor. I registered the runner with VM still alive. Now I can not get ride of the state the VM had when registering the runner....
0
votes
0answers
65 views

Where should I look to diagnose a startup failure using GitLab's Docker image?

I've followed these instructions to start a Docker container with gitlab/gitlab-ee:latest. sudo docker run --detach \ --hostname gitlab.example.com \ --publish 443:443 --publish 80:80 --publish 22:...
0
votes
0answers
6 views

Automatically link certain tokens like [INC-123] in Gitlab to outside pages

Is there a way to automatically create links for certain tokens in Gitlab Issue titles? For example if the title contains "[INC-123]" and I save the issue, the "[INC-123]" should ...
0
votes
0answers
19 views

Remove GitLab Build Dependency

I have created a GitLab automated CI/CD build process that looks something like this: And the .gitlab-ci.yml file looks like this (removed actual commands since they're not important to this question)...
0
votes
0answers
10 views

How to see list of issues reported by me on GitLab?

I would like to see all the GitLab issues I've reported (across all repositories). How can I do that? Is there any solution as mentioned in the following link for GitHub? How to see list of issues ...
0
votes
0answers
21 views

Gitlab - Nginx just showing welcome page

I have inherited a server running gitlab and from what I understand gitlab comes bundled with its on nginx. I have just renewed the SSL certs on the server using certbot but now all I see it the nginx ...
0
votes
0answers
437 views

Automatically merge master branch into develop branch

I have two branches in my github repository - master and develop branch. I have a requirement where I need to merge master branch into develop branch under below conditions: Once a PR is merged into ...
0
votes
0answers
91 views

GitLab API - GET Merge request JSON format

I'm getting my merge requests with this command: curl --request GET--header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/4/merge_requests/85&...
0
votes
0answers
13 views

In gitlab, which roles have permission to perform commits and merges?

The title says it all, pretty much. Very basic question. I've spent a couple of hours looking at alot of gitlab documentation, though, and I just don't see a clear answer. I guess the roles are &...
0
votes
0answers
7 views

questions about logs in gitlab

Have used git for a while, am new to gitlab. A couple of questions: I haven't figured out a gitlab GUI equivalent for the command line git log. Is there one? When I do a push from my local repo to ...
0
votes
0answers
16 views

Need to upload entire folders into gitlab from a windows machine — command line not available

I am trying to establish a gitlab repository. I have to work from a Windows machine. I do not have a Linux emulator. I do not have gitlab-runner. I cannot install either of these things (until the ...
0
votes
1answer
9 views

How to be sure I'm using the right identity from my personal remote server?

The company I work with and I are both using Gitlab as remote repo. To make it simple from my personal laptop I want to be able to connect on 2 distinct repo. The company's one and mine. I'm using 2 ...
0
votes
1answer
63 views

Backing up a Github account

Recently I saw a HackerNews post about someone who got locked out of their github without warning and it made me think I should have copies just in case this happens. The obvious solution is just ...
0
votes
0answers
52 views

Vpn connection in the gitlab pipeline

I have created a pipeline in gitlab. I wish I could establish a vpn connection. On my pc I use the Shrew Vpn client, then following the official Shrew guide I installed the client for linux. But when ...
0
votes
1answer
101 views

Gitlab does not recognize the license

I am used to gitlab automatically detecting the license of a project based on a license file. This time, however, it failed. I have a LaTeX package and a test script in one gitlab project which are ...
0
votes
0answers
35 views

gitlab CI runner: don't show all files being deleted in shell runner

Context: I'm using gitlab-ci shell runners. Whenever a job is started It is first removing all non git files from the build directory. Example: Running with gitlab-runner 11.7.0 (8bb608ff) on ...
0
votes
1answer
42 views

gitlab automatically cleanup code and make a commit

Context: I am using git and gitlab regularly and we use gitlab-CI to perform checks. This works quite well. One of the steps (for a python project) is to perform coding style checks. check that there ...
0
votes
1answer
64 views

git commands hang and finish after >1 minute in gitlab

Yesterday git commands (e.g. git pull) started to be super slow, when doing them against gitlab.com. They are working as usual when using them against github.com, so I assumed this is a problem with ...
1
vote
0answers
405 views

How to correct a merge in wrong branch?

I merged the Branch add-button in master instead to merge it in dev branch ! My question is, how to undo this merge and make master branch like before, then merge add-button to dev branch ?
0
votes
1answer
818 views

How to update tar to version 1.30+ in Ubuntu 16.04?

I work with the gitlab-ee docker image to install my local gitlab. This docker image has the OS Ubuntu 16.04 and can be found here: gitlab/gitlab-ee in hub.docker. Within these image tar in version 1....
0
votes
1answer
37 views

Centos 8 symlink to users's `.ssh` folder

I'm following this guide to setup some kind of ssh proxy for gitlab. this is how ti doesn't work When I create symlink like in that blog post I'm not able to ssh into server. This is how symlink is ...
1
vote
2answers
737 views

Why does ssh clone from gitlab repo need password from WSL but not Linux-native PC?

From a Linux-native desktop, I am able to clone a project from our gitlab repo like this: git clone git@git.company.com:namespace/project.git No problem with the above: specifically, I'm not asked ...
0
votes
0answers
1k views

Push to docker registry is denied

Let me start off admitting that this is a crosspost from the gitlab forum here: https://forum.gitlab.com/t/push-to-docker-registry-is-denied/35018. I didn't get any response there, so I hope I am ...
2
votes
1answer
79 views

efficiently check whether remote tracking branch changed (git or gitlab)

I'm looking for the fastest way of finding out, whether a remote tracking branch is different from a current branch. Context: Id' like to run a cron job, that shall find out, whether the current HEAD ...
0
votes
0answers
1k views

Configure Nginx to reverse proxy docker containers to subdomains

server { listen 443; server_name https://domain.dev ssl_certificate /etc/ssl/domain.dev.crt; ssl_certificate_key /etc/ssl/domain.dev.key; location / { proxy_pass http://...
0
votes
2answers
104 views

How to lock add new files to a repository in GitLab CE?

I'm building a GitLab self-hosted instance for academical purpose, using GitLab CE, and I want to limit the space which stores each user. I want to set a maximum size to store in a repository, which ...
0
votes
0answers
40 views

How to move legacy git repository to Gitlab that require GPG sign?

Currently the company I am working for has a legacy git repository that host elsewhere and all commits are not GPG signed. The project is getting bigger and more people are working for the same ...
1
vote
1answer
177 views

ssh from windows10 to a docker container ends with asking a password

I'm trying to test gitlab in a docker container installed on my windows 10 machine. But when I try to push my code, it ends with asking git's password When I test the connection with ssh -vT, here is ...
0
votes
1answer
126 views

Do I need to add rule for each port that Gitlab listens on?

I have a Gitlab server which is an Ubuntu 18.04 virtual machine on VMWare Esxi. I wanted to enable the firewall on this machine, for which purpose I installed gufw. The thing is that when I run the ...
0
votes
1answer
114 views

Gitlab connecting via HTTPS to IPs

this is kind of a weird question, but no search can help me figure it out so here it goes: I have an on premise Gitlab CE setup, version 12.5.0. I have a basic setup, no internet related outgoing or ...
0
votes
0answers
52 views

How to copy from Debain (virtual machine) to host machine

I'm trying to connect my VM to GitLab, and to do so I need to copy my public key to GitLab. cat id_rsa.pub The problem is that I can't do that using Debian terminal. I tried cat id_rsa.pub | ...
1
vote
1answer
248 views

Gitlab pages shows 503 when access control is turned on, fetching access token fails with http to https redirect message

I have Gitlab Omnibus (12.4.2-ee) set up in Ubuntu and was trying to get Gitlab Pages to work with access control turned on. It always returns a 503 after the Gitlab Auth page. Using it with access ...
0
votes
1answer
2k views

GitLab asks for password on clone via ssh

I have set up GitLab via docker, as explained here: https://docs.gitlab.com/omnibus/docker/ I then created a user and uploaded my public ssh keys using the gitlab web interface. If I connect to gitlab ...
0
votes
1answer
152 views

git clone as part of automatic configuration of EC2 instance?

I am setting up an EC2 instance with Terraform, and I need to run a large script during this process. I want to download the script from our gitlab repository with something like: git clone git@...
1
vote
0answers
99 views

postgresql configuration for gitlab

Does anybody know how to configure an external postgresql db instance for gitlab by stopping existing postgresql db. I have configured and getting below error : There was an error running gitlab-ctl ...
0
votes
0answers
28 views

GitLab CE Installation takes too long to respond

Currently I am trying to install gitlab community edition in CentOS 7. I followed the instructions provided by this site to do it. Everything seems to run ok, except from the installation which takes ...