Questions tagged [gitlab-ci-runner]

GitLab Runner is the open source project that is used to run your jobs and send the results back to GitLab. It is used in conjunction with GitLab CI, the open-source continuous integration service included with GitLab that coordinates the jobs.

Filter by
Sorted by
Tagged with
14
votes
3answers
16k views

How to tag source code using gitlabCI

We got gitlab new to our environment and trying to create some CI CD pipelines using gitlab CI. I have got some better progress with running some maven goals, creating pipelines and archiving ...
7
votes
1answer
8k views

Is it possible to have multiple gitlab-ci files in a single repo?

I have a single repo handling integration tests for 4 different software projects. As those projects share common resources, I'd like to create a generic file in which all those common features are ...
5
votes
1answer
3k views

Gitlab CI error during connect: Get http://docker:2375/v1.40/containers/json?all=1: dial tcp: lookup docker on xx.xx.xx.x:xx: no such host

I've recently created a new repository in gitlab.com, started a new Ubuntu instance in digitalocean, installed docker and gitlab-runner in the ubuntu instance. Also, did gitlab-runner register and ...
4
votes
2answers
453 views

How to pull all alternative tags of a Docker image?

I administer a GitLab instance with a 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 ...
3
votes
2answers
346 views

Installing azcopy in Gitlab Runner (Alpine Linux)

How can I install azcopy and use it in my gitlab runner CI/CD script? First I have two scripts that download the tar file and extract it. wget -O azcopy.tar.gz https://aka.ms/downloadazcopy-v10-...
3
votes
2answers
157 views

Best way to create a Ci/CD pipeline to reduce bugs and facilitate refactor

I started a project with a small team (3 people ) and we had to hack a lot and built a big application with no unit tests, relying only on manual. Now we have a huge technical debt and we started ...
3
votes
3answers
1k views

How to pass Gitlab env var with sensitive characters to bash script?

I have the following situation: I'm storing sensitive data in Gitlab's environment and then passing these variables to a deployment script in bash. Gitlab's env var: Key: sensitive_var Value: aaa$...
3
votes
2answers
3k views

Git-based CI/CD Pipeline for Monorepo

Are there established CI/CD strategies & best practices for working with a distributed team on a project that is utilizing monorepos? I can provide two specific use-cases: Working on content ...
3
votes
1answer
2k views

GitLab - trigger pipeline to build on specific runner

Scenario Create a new virtual machine with runner installed Trigger a pipeline to run (from another project), which runs on this new virtual machine Do something else, or fail if pipeline above fails ...
3
votes
1answer
3k views

Where to obtain the token to register a GitLab runner?

I have a GitLab repository. I want to add a runner to it. I was able to install it, with the instruction here without Docker (step 3). Now I have to register it according to the instructions here. In ...
3
votes
0answers
372 views

SSL error when deploying from gitlab runner (GitLab-CI) to remote docker host [closed]

I am trying to deploy an docker image, which is located inside the gitlab.com registry, to an external docker host. The docker host was created using docker-machine. I am using a shared runner and ...
2
votes
1answer
347 views

One time/set up jobs on gitlab ci?

I'm setting up a pipeline that compiles and builds new docker images, and then deploys those images to testing kubernetes cluster. I'm using a shell runner. I need to setup my kubectl client to ...
2
votes
1answer
651 views

Gitlab CI Runner command line doesn't care about --parameters

I'm trying to write a windows batch file to automate the gitlab runner registration : SET /p token=Token ?: gitlab-runner register --locked false --run-untagged true --tag-list java --name foo --...
2
votes
1answer
23 views

GitLab CI/CD page listing many gitlab runners that no longer exist

I am running GitLab Runner using a Helm chart as described on the GitLab Runner Helm Chart page. Everything seems to be working, but after about two months of running I see on my GitLab group that ...
2
votes
2answers
211 views

Build Docker images with DinD and BuildKit

I use GitLab's pipelines to describe the deployment process. And, as part of it, I build Docker images. For that purpose, I use Docker-in-Docker to build those images (i.e. download the Docker-in-...
2
votes
2answers
614 views

Error from server (Forbidden): error when retrieving current configuration of: Resource: “apps/v1, Resource=deployments”,

I integrate the existing kubernetes cluster to the gitlab instance (omnibus). I get the below error in the deployment stage of CI/CD pipeline: Error from server (Forbidden): error when retrieving ...
2
votes
1answer
35 views

What package manager does the gitlab docker CI image use?

I'm trying to install additional software but apt-get is not available. So in my .gitlab-ci.yml file I have: image: docker:stable What is the image based off from?
2
votes
1answer
29 views

How to specify 'os' for free gitlab runners ('runs-on' equivalent)

How can I specify the operating system in the .gitlab-ci file to indicate which underlying OS on which the gitlab-runner should be running when using the 2,000 minutes of free execution in with gitlab....
2
votes
1answer
83 views

Trying to migrate CI/CD process from Jenkins to Gitlab Runner + Docker on Windows

I need to improve the CI process of my projects, which is basically composed of the following things: a Linux server, that contains a Jenkins master a VM with Windows 10, with a Jenkins slave, ...
2
votes
1answer
1k views

No space left on device when running job on photon-os

I'm using gitlab and gitlab-ci along with gitlab-runner. Gitlab-runner is choking on my build jobs for a day now and I can't find a way to solve the problem. The problem appears when the npm install ...
2
votes
0answers
338 views

How to use shared runner (dind) for build stage and runner with shell executor on my server for deploy stage? [closed]

I want to do the build of my image on a shared runner and build it on gitlab registry. then I want to pull that image, on my server using the runner on my server using shell executor. but I face a ...
1
vote
1answer
242 views

Set job start timeout in Gitlab CI

My pipeline consists of very long jobs that build docker images by compiling a set of packages; all of them require ~ 3 hours on my runner. I set up my CI so that only one job can run at a time, in ...
1
vote
1answer
89 views

Problem on gitlab-runner: cannot lock ref […] Another git process seems to be running in this repository

I got a problem on a gitlab-runner after pushing several commits: Running with gitlab-runner 11.4.0 (8af42251) on GITLAB-RUNNER 58c31dfa Using Docker executor with image registry.git.rwth-aachen....
1
vote
1answer
72 views

How to automate installing an ISO in a VM?

We're trying to develop CI/CD processes to automate testing and installing our builds. Ya know, as one does in DevOps. The end result of our build process are ISOs that use Red Hat Kickstart to ...
1
vote
1answer
151 views

Gitlab runner, docker registry and self-signed certs

I've set up a Gitlab registry with self-signed certificate. After that I had to convince docker app to trust my CA, I did this by putting CA.crt into /etc/docker/certs.d/registry.gitlab.yourdomain:...
1
vote
1answer
15 views

Serve an application built by the pipeline

In the company that I work, the frontend application is very complex, so one of our layers of testing includes building/serving the application and testing with integrations mocked (The application ...
1
vote
2answers
326 views

GitLab runner not able to fetch AWS ECR images in the current AWS account

GitLab and GitLab runners are running on the same host (I know how bad it is). There is an IAM Role attached to the EC2 on which GitLab is running. This IAM Role gives the permission to perform some ...
1
vote
1answer
123 views

CI pipelines, concurrency and build results possibly overwriting each-other

I'm currently using gitlab-ci to generate docker images for some repositories, however i dont feel as though this solution is as reliable as it should be. I can forsee a issue with multiple builds ...
1
vote
1answer
967 views

Gitlab CI\CD Error: Failed to create container volume for /builds/root Unable to load image

I've installed the Gitlab local server and also install the Gitlab-runner and everything needs to use the CI/CD tools. After that When I run the CI/CD tools to build and deploy the project, it makes ...
1
vote
1answer
196 views

GitLab CI/CD job without pulling LFS files?

When our GitLab CI/CD job runs, it first pulls a Docker image and then git clones the entire repo. Afterwards, the Build commands are executed in the Docker image, etc. Is it possible to only clone ...
1
vote
1answer
181 views

Chef resource to register gitlab runner automatically

We would like to automate installation of gitlab runner using chef. we are successful with it. Now, the Issue is regarding registering gitlab runner with chef resource. we have gone through chef ...
1
vote
1answer
1k views

Trigger cicd pipeline after merge request accept on master, Gitlab

Trying to run some task after merge request get accept (only on master branch). I am aware of only: - master -merge_requests config options, but want to specifically run pipeline only when code get ...
1
vote
0answers
27 views

How to launch a docker container from within a GitLab Shell runner? [closed]

Situation My CI pipeline needs to do the following: log into a VM and have access to a bash terminal run a bash script that launches a Docker container with parameters (e.g. -it mode or providing the ...
1
vote
0answers
1k views

Access denied when pulling private registry image using helm with gitlab runner helm chart and ci job

I have a kubernetes cluster with 1 master and 2 workers. All nodes have their IP address. Let's call them like this: master-0 worker-0 worker-1 The network pod policy and all my nodes communication ...
1
vote
0answers
393 views

Kubernetes Continuous deployment stage in Gitlab Online fails [closed]

I am working on setting up a cloud DevOps deployment pipeline using Gitlab CI online, Kubernetes, and docker. I am following an example post at Continous delivery of a spring boot application with ...
0
votes
1answer
21 views

GitLab: Make commit in (shared) CI runner and push to repository/open merge request

I want to run a scheduled pipeline on the shared runners that is able to open a merge request on my repository. I want to run a script that checks if updates for my pinned packages exists and if yes ...
0
votes
1answer
28 views

Can a server used for GitLab runners be used as a deployment server?

I have a relatively simple understanding of GitLab CI: There is a GitLab server (server A) There is a separate server with GitLab runners (server B) And there is some other server - the 'prod' server ...
0
votes
1answer
23 views

Cross-CI on Windows and Mac

I am deploying CI with several runners - however they are all based on the Docker executor on Linux. Is it possible to use Linux runners to test applications on Windows or Mac instead? I understand I ...
0
votes
1answer
47 views

Understand GitLab CI/CD better

Did I understand this correctly, that stages will run in parallel if they have the same name? stages: - build rust-latest: stage: build image: rust:latest script: - apt-get update &&...
0
votes
1answer
508 views

How to deploy to Appengine standard from gitlab CI?

How to deploy from Gitlab CI to AppEngine Standard environment?
0
votes
1answer
508 views

Adding a persistent volume to a Kubernetes deployment from Gitlab Auto Dev-ops

Recently, GitLab partnered up with Google Cloud to provide automatic deployment to Kubernetes clusters directly from project repos. I enabled Auto Dev-Ops on my project, which just contains some Node....
0
votes
1answer
613 views

Have Jenkins trigger GitlabCI

Assuming a user initiates a Jenkins job, passing some input parameters. Is there a way, at some point to have the Jenkins job trigger a gitlab-ci, and also pass to it (i.e. the gitlab pipeline) some ...
0
votes
0answers
27 views

Gitlab CI push to docker-registry fails

I have GitLab server and a separate docker-registry. I have created a testuser with a testpassword. My .gitlab-ci.yml image: docker:latest services: - docker:18.09.7-dind variables: ...
0
votes
0answers
5 views

Gitlab Runner on PhotonOS using Docker-Executor

How can I run Gitlab-Runner on PhotonOS using the Docker-Executor? Using Gitlab-Runner requires mounting the docker-socket as a volume which is not possible in PhotonOS, so how can I go about ...
0
votes
0answers
17 views

Can a gitlab CI job exit okay but not update gitlab pages?

I have a gitlab repository with a scheduled regular CI job on a gitlab runner that grabs a data file from the internet, does some analysis, and then writes the results to its artifacts so that it ...
0
votes
0answers
12 views

What are alternative CI/CD autoscaling approaches with isolation allowing users running own containers?

Imagine you operate a DevOps platform as an alternative to the situation where every project has to set up their custom DevOps environment from scratch as the only alternative. With GitLab Runner, ...
0
votes
1answer
85 views

GitLab CI/CD: How do I generate a change log between pipeline runs?

I'm currently using Gitlab CI/CD combined with Fastlane on our build machine to perform nightly builds of an iOS app, and push those builds to TestFlight on completion. So far, so good. However, I've ...
0
votes
1answer
25 views

gitlab -ci script not being updated on runner

I have a problem I can't get my head around in gitlab-ci: I have a monorepo where I store some infra code (IaC), in this repo I have a script which allow me to lint the saltstack states code, as : #!/...
0
votes
0answers
21 views

Docker machine would give up to generate new CloudStack machines in GitLab autoscaling context?

How comes that GitLab gives up on generating new runners? We use an autoscaler setup with: Docker machine 0.16.1 Apache CloudStack driver One autoscaler works fine. But in the other region the ...