18,393 questions
Best practices
1
vote
1
replies
40
views
Fast and auto scalable gitlab runner
i've a question. We were using Gitlab's Instance runners but for security reasons, we wanna move it to private runner. I tried using ec2 as runner but it can't scale and is so slow for concurrent runs....
-8
votes
0
answers
48
views
How to config .ssh/config for gitlab [closed]
I want to add my ssh key to GitLab. GitHub provides a foolproof way to add ssh keys to GitHub and they even included ways to config .ssh/config. Now I want to add my ssh key to GitLab but then I found ...
0
votes
0
answers
53
views
How to map user contributions after move from GitLab to GitHub?
I just successfully moved a project from GitLab to GitHub. Our entire team have accounts on both platforms and everyone has read/write access to the new GitHub project.
For some contributors, GitHub ...
0
votes
0
answers
22
views
Modify extended job variable on the fly through script
I have the following jobs:
.build-image:
extends: .build-docker-image
stage: build
variables:
COMPOSER_HOME_DIR: /kaniko/.composer
BUILD_ARGS: >
COMPOSER_HOME=${...
0
votes
0
answers
93
views
Git clone failed on Windows but works fine on Mac
I am trying to git clone a GitLab repository using HTTPS on my Windows Laptop. HTTPS is the only protocol supported. It failed with the following error:
remote: Enumerating objects: 202266, done.
...
1
vote
2
answers
76
views
Permission denied when pushing to a forked repository (403 error on GitHub)
I forked a GitHub repository from my friend’s account, but when I try to push my commits, I get this error:
remote: Permission to Fatima-Ennouari/test.git denied to Ridafadli.
fatal: unable to access ...
0
votes
1
answer
34
views
GitLab Docker component usage
I'm trying to build a GitLab pipeline that calls a Docker component and does the Docker build, scan, and push automatically.
My pipeline structure is as below.
default:
tags:
- eks-lnx-prd
...
0
votes
0
answers
36
views
Make gitlab pipeline conditional on being the pipeline before the merge train one
I have a Gitlab pipeline that has a number of (expensive) steps, which I normally want to be manual and allowed-to-fail, but I want them to run and to succeed when the branch is actually being merged. ...
0
votes
1
answer
74
views
ArgoCD “ssh: handshake failed... connection reset by peer” when connecting to GitLab via SSH
I’m trying to connect ArgoCD to a private GitLab repository using SSH.
I created a key pair and added the public key to GitLab.
Then I configured the private key and repository URL ([email protected]....
0
votes
0
answers
29
views
GitLab CE self hosted is changing my group users
I have a self hosted GitLab CE for a project management team.
I have created a Group with 1 owner and 2 maintainers, and this group is linked to 3 different projects. So the group should be:
owner (...
0
votes
0
answers
28
views
GitLab CI/CD pipeline Salesforce code coverage test
I'm currently building a CI/CD pipeline in GitLab, and I'm running into trouble with integrating a code coverage check.
What I’ve Got So Far:
A working GitLab Runner (on Windows).
An Apex class and a ...
2
votes
1
answer
71
views
GitLab input values based on branch, like variables
My GitLab 18 instance is suggesting me to use inputs instead of variables;
Using inputs to control pipeline behavior offers improved security and flexibility. Consider updating your pipelines to use ...
0
votes
0
answers
30
views
GitLab on Ubuntu: Browser always redirects http://git.brian.dev to https://git.brian.dev
I’m configuring a self-hosted GitLab server on my laptop (Ubuntu).
My Wi-Fi IP is 192.168.x.x.
I added this line in /etc/hosts:
192.168.x.x git.brian.dev
In GitLab configuration (/etc/gitlab/gitlab....
0
votes
1
answer
64
views
Cloud Native Buildpacks unprivileged lifecycle with bellsoft-liberica buildpack BP_JVM_TYPE JDK builds JRE-configured run image instead of JDK
In our GitLab Pipeline we use Cloud Native Buildpacks (CNB) with the Kubernetes executor & unprivileged Runners (without pack CLI & docker) as discribed in this so answer.
Additionally to the ...
1
vote
1
answer
94
views
How to pull images from AWS ECR via pull through cache in .gitlab-ci
I'm using a gitlab pipeline, where its base image repo is in AWS ECR. I've configured AWS ECR pull through cache where my upstream registry is docker hub.
In my runners, I've added this
[[...