Questions tagged [gitlab-ci-runner]

This is GitLab Runner repository, this application run tests and sends the results to GitLab CI. GitLab CI is the open-source continuous integration server that coordinates the testing.

For Documentation see docs.gitlab.com/runner/

3028 questions
1
vote
1 answer

Terminate spot instance after each successful job using Gitlab CI

I have been working around Gitlab CI from couple of days. I have setup the EC2 -ASG as runner with spot instances. I wonder if we have any solution such that it should delete the spot instance right after the job is successful. Following is the…
1
vote
1 answer

How do I log into AWS before pulling image from ECR?

I'm pulling image into my pipeline from ECR. First I need to authenticate using eval $(aws ecr get-login --region eu-west-2 --no-include-email | sed 's|https://||') however I don't have an idea how to use it within CI workflow since this should…
wood
  • 75
  • 1
  • 7
1
vote
1 answer

Gitlab CI Pricing shared runners vs self hosted aws runners

I have been working around Gitlab CI from last one month. Initially, I setup gitlab shared runners. Then we thought having a self hosted runner on aws would be better to manage the cost at once place. Actually, we have 6 micro-services using self…
Arvin
  • 315
  • 1
  • 3
  • 15
1
vote
1 answer

Docker container exits with code 2 with deploying node app to Digital Ocean via Gitlab CI/CD pipeline

Good morning all, I am trying to deploy my node app to Digital Ocean via a Gitlab CI/CD pipeline. The pipeline is successful and deploys to DO, but the container exits with code (2). My Node App uses port 3000. I am using pm2 to run the server, but…
augdog97
  • 257
  • 5
  • 17
1
vote
1 answer

GitLab Runner stopping after `dotnet restore` or `dotnet test`

I am new to CI and tried to add the following yaml to our project. image: microsoft/dotnet:latest stages: - test test: stage: test before_script: - 'echo Stage - Test started' - 'dotnet tool install dotnet-reportgenerator-globaltool…
1
vote
2 answers

gitlab k3s runner WARNING: Checking for jobs... failed x509: certificate signed by unknown authority

I have an issue with a gitlab-runner installed via the application panel on gitlab to a k3s rancher cluster. It was working fine then today gitlab was restarted and started giving out this error. I found out where the gitlab certificate is and where…
CodeM7
  • 93
  • 2
  • 12
1
vote
1 answer

How to debug jobs on gitlab runners?

I am trying to debug a job on a gitlab runner. From what I understand, I need to modify the gitlab runner config in order to enable the interactive web terminal. My current config.toml looks like: concurrent = 1 check_interval = 0 [[runners]] …
desa
  • 1,240
  • 12
  • 31
1
vote
2 answers

Maven dependency cache not working on Gitlab Runner

I have spent an ample lot of time on this, and it doesn't seem to work. Have tried on multiple projects. We host our gitlab runner ourselves (on our AWS via EKS) managed by Gitlab (SaaS). I want it to cache the maven dependencies. When I configure…
Jatin
  • 31,116
  • 15
  • 98
  • 163
1
vote
1 answer

I cannot get my CI/CD deploy job to complete successfully

I've been working at this for a lot longer than I want to admit, but I cannot get my deploy to staging job to succeed. I've looked over as much documentation as I could find, and tried to follow any examples, but still no dice. At this point I get…
Zach Burnett
  • 63
  • 1
  • 1
  • 10
1
vote
1 answer

Gitlab-CI failure Error: error initializing: Looks like link is not a valid chart repository or cannot be reached:

I'm running auto deploy to GCP through Gitlab, I'm using this auto-deploy script https://gitlab.com/gitlab-org/gitlab/blob/master/lib/gitlab/ci/templates/Auto-DevOps.gitlab-ci.yml as my guide. Now there's this template that's being used for the…
Linda Kadz
  • 329
  • 2
  • 17
1
vote
1 answer

what is a runner on Gitlab

Recently I started using Gitlab from previously using Github for my personal work. I felt comfortable using it these days, until I found Gitlab Runner. i am looking for it is documented and quite confused with it, so is there someone who can help me…
1
vote
3 answers

Cannot run DIND for GCloud SDK docker image in GitLab Runner

I have set up a simple .gitlab-ci file which should be able to run docker service: docker: image: google/cloud-sdk:latest variables: DOCKER_DRIVER: overlay2 DOCKER_HOST: tcp://127.0.0.1:2375 services: - docker:dind tags: -…
Vojtěch
  • 11,312
  • 31
  • 103
  • 173
1
vote
1 answer

Gitlab runner deletes some files/folders on the server

I'm deploying a Django project on Centos 7 server using gitlab runner. Each time I commit and push the project, gitlab runner tries to remove folders (such as the media folder) that are not in the gitlab repository(are on .gitignore). I don't want…
1
vote
0 answers

Sonarqube login information not being used by GitLab CI pipeline

I am running into a problem with generating Sonarqube reports from a GitLab CI pipeline. I think the problem is that the login information I provide is not passed to the pipeline. I did specify it in my yml file: stages: - build - test -…
Pimv_h
  • 380
  • 1
  • 3
  • 13
1
vote
1 answer

Connecting gitlab-runner (server) to virtual machine via SSH fails: Permission denied (publickey,password)

I try to setup a runner-script that will connect to the VM (where application runs) via SSH. In the environment Variables (CICD Config -> Variables) i store the private key (ed25519) which is used to connect to the VM-server. But then the following…
Ndrslmpk
  • 125
  • 9