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
18
votes
3 answers

Get latest tag in .gitlab-ci.yml for Docker build

I want to add a tag when building a Docker image, I'm doing this so far but I do not know how to get the latest tag on the repository being deployed. docker build -t company/app . My goal docker build -t company/app:$LATEST_TAG_IN_REPO? .
Otto
  • 4,020
  • 6
  • 35
  • 46
18
votes
3 answers

./deploy.sh not working on gitlab ci

My problem is the bash script I created got this error "/bin/sh: eval: line 88: ./deploy.sh: not found" on gitlab. Below is my sample script .gitlab-ci.yml. I suspect that gitlab ci is not supporting bash script. image: docker:latest variables: …
18
votes
5 answers

Gitlabs artifact of one project used in further projects

Question What is the best way to carry artifacts (jar, class, war) among projects when using docker containers in CI phase. Let me explain my issue in details, please don't stop the reading... =) Gitlabs project1 unit…
rafa.ferreira
  • 1,997
  • 7
  • 26
  • 41
18
votes
1 answer

How do travis-ci and gitlab-ci compare?

As far as I understand, the main difference is that gitlab-ci is opensource (you can install it on your own server) and travis-ci isn't. So then the latter is always cloud/service-based. And it's free for open source projects. But then GitLab.com…
knocte
  • 16,941
  • 11
  • 79
  • 125
17
votes
3 answers

Gitlab where is config.toml

Im working on adding code quality to gitlab. one of the step requires making changes to config.toml. I have .gitlab-ci.yml at root level of project repository.and pipeline picks up this file. where do i define config.toml ? at root level or i need…
wcsSunil
  • 181
  • 1
  • 1
  • 5
17
votes
4 answers

How to customise config.toml on Kubernetes?

I'm have a Gitlab cloud connected to a k8s cluster running on Google (GKE). The cluster was created via Gitlab cloud. I want to customise the config.toml because I want to fix the cache on k8s as suggested in this issue. I found the config.toml…
Joost den Boer
  • 4,556
  • 4
  • 25
  • 39
17
votes
3 answers

How to create a merge request at the end of a successful pipeline in Gitlab?

I'm very new to gitlab and gitlab CI and I have put a pipeline in place that is successfully completing. My master and development branches are protected so a merge request is required so that another dev in the group can review the code and comment…
Dark Star1
  • 6,986
  • 16
  • 73
  • 121
17
votes
1 answer

Install Gitlab runner on ECS Cluster

We are running AWS ECS/ECR with Gitlab CI as CI/CD. Due to load increase we are searching for the best way to autoscale the runner on AWS. I know Gitlab supports Autoscaling for its ci-runner.…
aerioeus
  • 1,348
  • 1
  • 16
  • 41
17
votes
2 answers

How does gitlab decide which runner to use for a job

If there are more than one available runner for a project, how does gitlab ci decide which runner to use? I have an omnibus gitlab 8.6.6-ee installation, with 2 runners configured. The runners are identical (docker images, config, etc) except that…
BM5k
  • 1,210
  • 10
  • 28
17
votes
1 answer

GitLab CI Runner, how to use volumes or mounts in service containers

I use GitLab CI Runner, it uses the command: docker run -d --name postgres postgres:9.4 I want to do something like this: docker run -d --name postgres --volumes-from postgres_datastore postgres:9.4 But GitLab CI Runner doesn't support any options…
Eric
  • 245
  • 1
  • 3
  • 8
17
votes
3 answers

GitLab.com CI shared runner for Android projects

I'd like to use GitLab CI system for my Android application gradle project. The project repository is hosted on GitLab.com, so I'd like to use one of the Shared Runners provided by Gitlab Inc. While the official tutorial provides an example for…
JeB
  • 11,653
  • 10
  • 58
  • 87
16
votes
4 answers

GitLab Runner - How to allow only one Pipeline run at a time

I am new to GitLab and facing a problem where if I trigger two pipelines at the same time on same gitlab-runner, they both run in parallel and results in failure. What I want is to limit the run to one pipeline at a time and others in queue. I have…
Shubh Rocks Goel
  • 519
  • 1
  • 6
  • 17
16
votes
3 answers

Cannot connect to the Docker daemon at unix:///var/run/docker.sock in gitlab CI

I looked at any other questions but can't find my own solution! I setting up a CI in gitlab and use the gitlab's shared runner. In build stage I used docker image as base image but when i use docker command it says : Cannot connect to the Docker…
Majid Rajabi
  • 1,417
  • 6
  • 20
  • 35
16
votes
1 answer

GitLab pull submodules inside CI

I have a GitLab project that utilises GitLab CI. The project also uses submodules, both the project and it's submodules are under the same GitLab account. Here is my .gitmodules file [submodule "proto_contracts"] path = proto_contracts url =…
areller
  • 4,800
  • 9
  • 29
  • 57
16
votes
4 answers

curl command not found on .gitlab-ci.yml

I have a .gitlab-ci.yml file. Its creating some docker images and pushing it to AWS ECR. When I am running curl command to push some artifacts to remote repository it says curl: not found. I am already using openjdk image to do ./gradlew build.…
Abhinav Mutreja
  • 527
  • 1
  • 5
  • 16