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
0
votes
0answers
3 views

Gitlab CI invokes docker install.sh and always runs instruction with Sudo

I am trying to run gitlab ci which contains custom php image. The before_script invokes docker_install.sh In docker_isntall.sh I executed "whoami" it gives "docker". I tried to ...
0
votes
1answer
11 views

This job is stuck because you don't have any active runners online

I try to use Gitlab-CI and create the runner, but when jobs start, the job with the needed runner doesn't start: But this runner exists in the list: How to use a runner? And an additional question: ...
0
votes
1answer
20 views

Trigger gitlab downstream pipeline from a upstream pipeline in a multi-project using trigger, rules and custom configuration variables

I have this scenario where I want to run the trigger in build stage only when $FLAG variable has been set by the .pre stage. However, the build stage never runs. How should I conditionally trigger a ...
0
votes
0answers
32 views

Golang + Terraform in Gitlab CI

I have an application made of two compiled Go programs and a Terraformed test stack. There will be more functions and resources in the coming weeks. Maybe other technologies that will need other ...
0
votes
1answer
27 views

Gitlab CI - Deploy to an active docker container

I am running production code within an active docker container. I would like to use the Gitlab CI tool to auto deploy changes to the production environment WITHIN the docker container. I am having ...
0
votes
1answer
33 views

Is gitlab-runner suit for production use

Is the GitLab CI/CD tools suit/reliable for production use? As more details, I have more than two servers and they've gitlab-runner inside then connected as runners to my GitLab instance. In this case,...
0
votes
2answers
32 views

Gitlab CI - Change branch dynamically

I have a nodeJS application which I deploy with Gitlab CI. When pushing to branch XYZ, the corresponding script runs, let's assume on stage 'dev'. That's working. So far so good. Is it possible to ...
1
vote
1answer
43 views

GitLab pipeline stop at the stage of pulling an image from Docker hub

Description: I have created a test project to serve a simple HTML page with httpd:alpine image. The following are the parts of the repository: index.html: <html lang="en"> <head> ...
1
vote
1answer
12 views

How to copy library source code from other Git repo to an Android Gradle application GitLab build process?

There is an Android application using Grandle for build. It uses a "library" stated in build.gradle file: dependencies { api project(path: ':specialproject.speciallibrary', configuration:...
1
vote
1answer
27 views

Devops CICD run ReactJS application while testing with jest + puppeteer [closed]

Scenario I'm working on getting my end-to-end tests to work in a GitLab pipeline. Currently all the tests run locally but I'm having an issue getting them to run using GitLab's continuous integration ...
0
votes
1answer
223 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
77 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
19 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 ...
2
votes
1answer
38 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
73 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 ...
3
votes
2answers
533 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-...
1
vote
1answer
562 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
180 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....
2
votes
2answers
1k 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 ...
0
votes
0answers
25 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, ...
1
vote
1answer
81 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
187 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 ...
7
votes
2answers
5k 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 ...
2
votes
1answer
116 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, ...
0
votes
1answer
24 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 ...
1
vote
2answers
451 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 ...
0
votes
1answer
128 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 ...
3
votes
2answers
184 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 ...
0
votes
1answer
31 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 : #!/...
1
vote
1answer
141 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
1k 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 ...
0
votes
1answer
30 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 ...
3
votes
2answers
4k 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 ...
4
votes
2answers
2k 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 ...
3
votes
3answers
2k 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$...
1
vote
1answer
256 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
0answers
29 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 ...
2
votes
1answer
37 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?
3
votes
2answers
451 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-...
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
346 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 ...
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 &&...
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 ...
0
votes
1answer
571 views

How to deploy to Appengine standard from gitlab CI?

How to deploy from Gitlab CI to AppEngine Standard environment?
8
votes
1answer
11k 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 ...
4
votes
2answers
501 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
0answers
381 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 ...
1
vote
1answer
200 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 ...
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 ...