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

How to avoid port conflict with current container while gitlab-runner execute the job

I am trying to deploy my application with gitlab-runner. Here is .gitlab-ci.yml script: stages: - build - deploy image: docker:20 variables: IMAGE_NAME: front:$CI_COMMIT_REF_NAME build: stage: build when: manual script: - docker…
AksenovAN
  • 113
  • 8
1
vote
1 answer

How to use cache with Gitlab CI

I'll make the docker build using for cache the previous image. my process is : pull the old image (docker pull ) build image (docker build -t ) locally, the build use the layer just pull but, the runner make all step of the docker file…
Anyi Chen
  • 11
  • 2
1
vote
1 answer

How to use Gitlab shared runner for iOS projects

How Can I used shared runner to build my iOS project from the git pipeline? Getting error - Executing "step_script" stage of the job script /bin/sh: eval: line 92: xcodebuild: not found $ xcodebuild clean -project CI-Demo-iOS/CI-Demo-iOS.xcodeproj…
Yashika Chandra
  • 163
  • 3
  • 13
1
vote
2 answers

Why same command fails in GitLab CI?

The following command works perfectly on the terminal but the same command fails in GitLab CI. echo Hello >> foo.txt; cat foo.txt | grep "test"; [[ $? -eq 0 ]] && echo fail || echo success return is success but the same command in GitLab CI $ echo…
user12640668
1
vote
1 answer

Gitlab CICD sets wrong service url in the production environment

After production deployment the application has not the endpoint of the environment.url from the .gitlab-ci.yml, but a combination of the groupname, projectname and basedomain: -.basedomain. The Gitlab project belongs to a…
erwineberhard
  • 309
  • 4
  • 17
1
vote
1 answer

Gitlab Runner Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

I'm facing this issue while building the docker file I have installed gitlab-runner version 13.8.0 gitlab runner cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Anurag Arwalkar
  • 615
  • 7
  • 10
1
vote
3 answers

git push changes made during gitlab ci/cd

I'm trying to do change in a file during a job in a pipeline i'm developing and then commit that change to the master branch of the same project, but I'm having a hard time making it work. Here's the job: maven_next_release: stage: next-version …
1
vote
1 answer

Stat.exists with dictionary in ansible

I have a problem with checking existing files using a dictonary in Ansible. - name: Test if config file exists ansible.builtin.stat: path: "{{ agpm_runner_base_dir }}/{{ item.key }}/config.toml" with_dict: "{{ runners }}" register:…
AmineH7
  • 75
  • 1
  • 1
  • 6
1
vote
1 answer

Is the shell executor a safe option when running GitLab Runner in a docker container?

I'd like to use a GitLab Runner in a docker container as explained in the doc mostly to easily deploy it to another machine. I'm wondering how to use it to safely run the CI/CD jobs that GitLab sends to the runner. GitLab Runner documentation warns…
Guillaume Chérel
  • 1,478
  • 8
  • 17
1
vote
1 answer

Bind docker socket with a Kubernetes runner and share volume

I'm using gitlab runner install with Helm and running on Google Cloud Kubernetes engine. Here my runner configuration inside my values.yaml file : runners: config: | [[runners]] [runners.kubernetes] image = "ubuntu:16.04" …
1
vote
1 answer

Electron forge maker fail when target zip on `GitLab CI`

This error is only caused when electron forge maker runs on GitLab CI: Making for the following targets: zip - Making for target: zip - On platform: linux - For arch: x64 ✖ Making for target: zip - On platform: linux - For arch: x64 An unhandled…
chege
  • 13
  • 2
1
vote
2 answers

Gitlab CI Predefined variable ${CI_COMMIT_BEFORE_SHA} sometime returns strange output

I wanted to check for changed files between previous commit occurs and latest commit with git diff ${CI_COMMIT_BEFORE_SHA} ${CI_COMMIT_SHA} --name-only For official documentation about ${CI_COMMIT_BEFORE_SHA} : The previous latest commit present…
BTH.S3
  • 199
  • 1
  • 3
  • 12
1
vote
0 answers

Gitlab runner auto-scale in Spot instance with IAM ROLE

I am following this gitlab article on autoscaling gitlab runner on AWS spot instances. I have a terraform code I need to execute and since these spot instances don't have an IAM role attached to them (since they are automatically spinning up by the…
1
vote
1 answer

Gitlab ci cd removes artifact for merge requests

In my gitlab ci cd pipeline, i have two jobs : build : this job will be triggered after creating a pull request from the branch develop to a release branch. I will generate my project distribution (vuejs project), generate the version which is an…
Amdouni Mohamed Ali
  • 410
  • 1
  • 4
  • 18
1
vote
1 answer

Build and deploy on the same dockerized runner

I'd like to build and deploy a static website (Middleman) using a self-hosted GitLab instance and CI runners, all running on a local Docker engine. It works fine if I do both build and deploy in one job, however, I'm wondering if it's possible to…
svoop
  • 3,318
  • 1
  • 23
  • 41