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

How do I register/reregister a Gitlab Runner using a pre-made config.toml?

I recently wanted to move a Gitlab runner that I had set up for my self-hosted Gitlab instance from being a project runner (i.e. running jobs only for a project) to being a group runner (so it could also run jobs for other projects in the same…
interfect
  • 2,665
  • 1
  • 20
  • 35
13
votes
2 answers

"Host key verification failed" on Gitlab_ci although ssh_key is present

"Host key verification failed." on Gitlab_ci when running "ssh name@server" Here's a part of my gitlab_ci which is supposed to login to my server and run scripts from the repo: script: - which ssh-agent || ( apt-get update -y && apt-get install…
Oddamati
  • 183
  • 1
  • 2
  • 6
13
votes
3 answers

Tagging docker image with tag from git repository

I am using Gitlab for repository and ci/cd. Currently trying to set up pipeline that creates a docker image from a build stage. All examples I have seen have a simple naming of image where e.g. the branch is used(master) My question is if I want to…
Noel
  • 5,037
  • 9
  • 46
  • 69
13
votes
1 answer

How to use Dockerfile in Gitlab CI

Using gitlab-ci for my node/react app, I'm trying to use phusion/passenger-nodejs as the base docker image I can specify this easily in .gitlab-ci.yml: image: phusion/passenger-nodejs:latest variables: HOME: /root cache: paths: -…
MattPark
  • 377
  • 1
  • 2
  • 13
13
votes
2 answers

Gitlab-runner with syntax error

I recently used the docker image gitlab/gitlab-runner:9.1.0 in conjunction with a gitlab container to have some CI. An error occurs and similar support requests recommended using a different version, so I tried with :latest and some :1.11…
LeMike
  • 3,195
  • 5
  • 25
  • 35
13
votes
5 answers

yarn command not found in gitlab ci

I am trying to configure my gitlab-ci to use yarn install instead of npm install My current gitlab-ci.yml looks like: image: node:6.9.4 cache: paths: - node_modules/ - .yarn before_script: - apt-get update -qq && apt-get install -qy…
Panshul
  • 1,064
  • 2
  • 14
  • 33
13
votes
2 answers

Gitlab CI: Cannot find output of build stage

I have my .gitlab-ci.yml file set up in the typical three stages: test, build, deploy. During the build stage, I run a command that compiles my project and puts it in a tarball. The build stage appears to execute successfully because it moves on to…
sajattack
  • 803
  • 1
  • 9
  • 23
13
votes
1 answer

gitlab-ci-runner choose executer "Please enter the executor:"

I have ran gitlab-ci-multi-runner in a container by docker. When I execute the gitlab-ci-multi-runner register in the container,it ask Please enter the executor: docker...? If I choose docker,does it mean a docker container will run on the…
user3576777
  • 131
  • 1
  • 1
  • 5
12
votes
3 answers

gitlab ci error could not translate host name "postgres" to address: Name does not resolve

I use gitlab-ci in my rails app, it ran correctly till yesterday but it does not pass due to: rake aborted! PG::ConnectionBad: could not translate host name "postgres" to address: Name does not resolve /usr/local/bundle/gems/pg-1.1.4/lib/pg.rb:56:in…
12
votes
2 answers

Gitlab CI - ERROR: Job failed: executor requires OSType=linux, but Docker Engine supports only OSType=windows

Getting this error while running Gitlab CI pipeline. As I understand the error says that I'm trying to run a Linux type docker image on a windows docker-engine? But the thing is I'm using a windows docker image. What could be the problem? ERROR:…
user1985273
  • 1,817
  • 15
  • 50
  • 85
12
votes
2 answers

GitLab Pages deployment step fails after successfull build

I am trying to host a reveal.js presentation via gitlab pages. The repository can be found here: https://gitlab.com/JanGregor/demo-slides My .gitlab-ci.yml is fairly simple: image: node:4.2.2 pages: cache: paths: - node_modules/ …
Jan
  • 907
  • 1
  • 8
  • 23
12
votes
1 answer

Gitlab runner + autoscaling + scaled runner options

I'm using gitlab runner with docker+machine executor to fire up autoscaled runners on AWS. I would like to use docker-in-docker setup inside the runners to build containers, but I can't find out how to define the needed [runners.docker] properties…
ronkot
  • 5,915
  • 4
  • 27
  • 41
12
votes
1 answer

How to view shared runner queue

I'm using Gitlab's shared runner. Build has been in 'pending' state for over 20 minutes. How to debug this? is it something to do with the runner availability or script execution issue.. Is it possible to gain more insight by any means?
Sahas
  • 3,046
  • 6
  • 32
  • 53
12
votes
1 answer

Issues with proxy in Gitlab CI using Docker runner

I want to package my Maven/Java app in a Docker Gitlab CI runner. I'm behind a corporation proxy. This is my .gitlab-ci.yml: image: maven:3-jdk-7 build: script: "mvn clean package -B" When a build is triggered, I get this error (in the Gitlab…
Héctor
  • 24,444
  • 35
  • 132
  • 243
11
votes
7 answers

Not able to execute GitLab Runner in Kubernetes cluster: cannot create resource "secrets" in API group "" in the namespace "gitlab"

Currently I'm facing the issue: ERROR: Job failed (system failure): prepare environment: setting up credentials: secrets is forbidden: User "system:serviceaccount:default:gitlab-runner" cannot create resource "secrets" in API group "" in the…
andreas.teich
  • 789
  • 1
  • 12
  • 22