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
0 answers

Gitlab ci error : bash: composer: command not found

I try to use pipeline with gitlab-ci This is my gitlab-ci.ymn file image: docker-laravel-envoy services: - mysql:5.7 stages: - test unit_test: stage: test script: - composer install --prefer-dist --no-ansi --no-interaction…
Axel AMGHAR
  • 165
  • 1
  • 12
1
vote
2 answers

GitLab CI: Using environment variable in exists rule

I want my CI job to only run if a file exists. My path contains environment variable that is passed on the GitLab CI/CD schedule variables. rules: - exists: - foo/bla/${ENV}/foo.json When I use the $ENV environment variable (with or…
Gilbert Williams
  • 970
  • 2
  • 10
  • 24
1
vote
1 answer

ERROR: Preparation failed: getting Kubernetes config: invalid configuration: no configuration has been provided Gitlab

Hey guys this is blocking my flow! I have my gitlab runner installed on my Windows machine. I registered a runner with a kubernetes executor. It previously used to work, but not any more. I have a kubernetes cluster (the one provided by docker…
Sabir Moglad
  • 739
  • 2
  • 7
  • 23
1
vote
0 answers

How to set variable CI_REGISTRY using gitlab_runner when running locally?

I installed gitlab_runner.exe and Docker Desktop on Windows 10 and try to execute the following from gitlab-ci.yml .docker-build: image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/docker:19.03.12 services: - name:…
Sathish Kumar
  • 2,150
  • 10
  • 29
  • 51
1
vote
0 answers

Use Gitlab CI file type variable as entrypoint param to docker service

I am trying to pass a config file to Docker service in Gitlab by overriding the entrypoint to the service. I have defined a file type environment variable called FRPC_INI that I want to pass to the service as the configuration file. services: -…
Alko
  • 672
  • 10
  • 21
1
vote
0 answers

Pytest fails due to VTK import error when called by gitci, but not when called directly

We have a windows 10 machine running a gitlab runner version 13.4.1. Our repo has been configured with a gitlab-ci yml file that builds a new conda environment (including vtk version 8.1.0) and then runs a pytest unit tests in that…
1
vote
1 answer

Gitlab-runner run python2 instead of python 3

here is my gitlab-ci.yml file: image: python:3.6 before_script: - python --version - pip install -r requirements.txt stages: - test test: stage: test script: - chmod +x ./scripts/lint.sh - ./scripts/lint.sh - chmod +x…
LearnToGrow
  • 1,656
  • 6
  • 30
  • 53
1
vote
1 answer

Setup CICD using Google cloud run and GITlab

I am very new to the CICD. I have to set up a pipeline to connect the GitLab repo to the cloud run. I have currently hosted my website on cloud run and code in GitLab using the manual command. I have tried to mind many documents and vedios but those…
1
vote
1 answer

ssh to a remote server using gitlab ci

i want to deploy my docker images into a public remote server and in that server i will connect it to my gitlab container registy to pull images and run docker-compose (in the server) my problem is how can i ssh to that server using gitlab ci file…
1
vote
1 answer

How to define global variables based on rules on gitlabci?

How to define global variables based on rules on gitlabci? I have a syntax error with this script and I wonder how to fix it. My goal is to use different environment variables based on my branch. Is it possible to define once a list of environment…
1
vote
0 answers

Gitlab GKE runner push to GCR using workload identity

I am attempting to use a gitlab runner to build an image in GKE and then push that image to GCR. This always fails and outputs an AWS error at first. My understanding is that the building pod is created within the same namespace as my GCR…
1
vote
3 answers

Running default before_script in gitlab-runner docker exec

I have a gitlab ci configuration that I want to run locally. I can see that I can do that using gitlab-runner docker exec in this answer: Use GitLab CI to run tests locally?. However, my gitlab configuration uses a default before_script, and when I…
Matt
  • 2,232
  • 8
  • 35
  • 64
1
vote
0 answers

How to setup a Gitlab-Runner with docker-dind TLS enabled

I have been using a self hosted Gitlab-Runner for my CI though I do not have any self instance server of Gitlab, just the runner, so I use gitlab.com directly. I have been using this runner until very recently on a Linux machine and it has been…
Javier Guzmán
  • 1,014
  • 2
  • 13
  • 27
1
vote
1 answer

Error: pg_config executable not found in Gitlab Runner

I'm trying to setup gitlab ci pipeline, but the build task always failed because psycopg2-binary. I did some googling and found that switch between 2.7.x and 2.8.x will be fine, but not luck for me. However, docker-compose working fine when building…
Kimsea Sok
  • 140
  • 2
  • 13
1
vote
1 answer

TeamCity Build Erroring Out while doing Git Push

I have teamcity build steps which is based on command line. My objective is, I want to upload code into gitlab using the git commands from team city build steps Below are my commands : git config --global user.name "username" git config --global…
TikuArya
  • 11
  • 1