Questions tagged [gitlab-ci]

GitLab CI is a continuous integration server from GitLab.

GitLab CI integrates with your GitLab instance to build the projects and run tests on top. GitLab CI supports the Linux operating system.

GitLab CI pipelines are defined by a .gitlab-ci.yml file placed inside the project directory. For details on writing a .gitlab-ci.yml file visit https://docs.gitlab.com/ee/ci/yaml/.

More information is in https://about.gitlab.com/features/gitlab-ci-cd/.

8228 questions
3
votes
1 answer

How to 'git diff-tree' on a certain directory?

I need a list of files that changed and dump it to the files I can get all the list by running this git diff-tree --name-status -r "upstream/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME..HEAD" > changed-files.txt But now I want only a list of files that…
Roy
  • 398
  • 1
  • 6
  • 20
3
votes
1 answer

ENV_VARS "undefined" when deploying Next JS app through Gitlab CI/CD to a Kubernetes cluster:

I stick to this problem quite long now: I have a standard NextJS app, which uses environment variables (for client side NEXT_PUBLIC_MY_VAR as well for server side ones MY_OTHER_VAR). I use the Gitlab CI-CD AutoDevOps with an tiny custom…
Jan
  • 12,992
  • 9
  • 53
  • 89
3
votes
1 answer

How to clear the workspace in gitlab in .gitlab-ci.yml?

When you create a job in jenkins, to clean up the workspace before build you can select under Build Environment the box that says Delete workspace before build starts. How can you do the same when you run a job with gitlab? What line(s) must be…
Alex
  • 41,580
  • 88
  • 260
  • 469
3
votes
2 answers

Docker error during connect: Post http://docker:2375/v1.24/auth

I am using a docker+machine to run my gitlab ci/cd jobs. My .gitlab-ci.yml looks as such: image: docker:latest variables: DOCKER_HOST: tcp://docker:2375/ DOCKER_TLS_CERTDIR: "" services: - docker:19.03.12-dind stages: - build -…
Danskaman
  • 51
  • 1
  • 5
3
votes
1 answer

Can not run gitlab ci with Permission denied

When I try to run my gitlab-ci.yml, I got this error ? Has anyone have any idea? Thank you
Nawin Poolsawad
  • 227
  • 2
  • 13
3
votes
1 answer

GitLab Docker build locked on sharp download (timeout)

During Docker build in Gitlab job pipeline the process is freezed on sharp@0.28.3 install /app/node_modules/sharp (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node…
Pid
  • 31
  • 2
3
votes
0 answers

Trigger CI/CD pipeline job after merge to specific branch. Not when merge request is created

I know you can set it up so that the job only executes when there is a merge request to a specific branch but I don't want it to execute when the merge request is created, I want it to execute when the merge request is actually merged. I currently…
3
votes
1 answer

Gitlab Runner registration return (401 Unauthorized)

We have installed gitlab runner on redhat server but we can't register it with our gitlab instance as it is protected (we need to login before it shows HTTPS). When we clone the project repository: git clone https://domain\.com/project.git It asks…
Amie Joni
  • 45
  • 1
  • 5
3
votes
1 answer

GitLab Runner not using Registry Mirror

Since docker introduced the pull rate limit i'm running a pull-through registry. I have done the setup with the documentation on dockers site (https://docs.docker.com/registry/recipes/mirror/#configure-the-cache). In my runners config.toml two…
3
votes
1 answer

check coding style with gitlab CI

I use clang-format to format my source code and I want to verify the coding style(variable name préfix, indentation, ...) in gitlab CI. I already use code quality to check variable scop. I want to add coding style verify in code quality. someone…
Tom Penard
  • 141
  • 8
3
votes
0 answers

Gitlab detect secret artifacts can not get in another stage

i am trying the gitlab default secret detection option. here is Gitlab CI file i am trying include: - template: Security/Secret-Detection.gitlab-ci.yml stages: - test test: stage: test artifacts: reports: secret_detection:…
chagan lal
  • 95
  • 1
  • 6
3
votes
0 answers

Automating the building of react native apps with gitlab

So far, I mainly used expo to preview my React Native app(s), and let others do the building (e.g. the APK for Android). Now, I want to do it myself and directly automatize this using gitlab. I have to confess that I am not familiar with gitlab CI…
B--rian
  • 5,578
  • 10
  • 38
  • 89
3
votes
0 answers

ImportError: libGL.so.1: cannot open shared object file: No such file or directory in gitlab

from PyQt5.QtWidgets import QApplication, QWidget, QLabel ImportError: libGL.so.1: cannot open shared object file: No such file or directory
3
votes
2 answers

GitLab CI Pipeline Job gives error JavaScript heap out of memory

We have a WordPress plugin written in JS with the help of the tool wp-reactivate. Our goal is to make a GitLab CI Pipeline that increases the version in all places, builds the project and deploys it to the WordPress.org SVN repository. So far, the…
3
votes
1 answer

GitLab: chosen stage does not exist

I am trying to put together a fairly complex pipeline with several jobs that run sequentially in our different environments. This is to run our Terraform changes across our infra. The sequence of jobs should run automatically across our infraci…
danny.roberts
  • 31
  • 1
  • 1
  • 2