8,977 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
53
views
Seeding database in GitLab CI
I'm currently working on the GitLab CI pipeline for my Node.js web app.
In my current GitLab CI setup I follow the same steps for a couple of CI jobs:
Use the Node image
Spin up services: Postgres, ...
0
votes
1
answer
83
views
How to specify multiple pipeline sources for a gitlab-ci.yml build
I'm working on a CI script for a gitlab project. The build runs in two stages. The first compiles and packages the code. The second deploys the packaged code to two different remote servers (it's a ...
0
votes
0
answers
57
views
GitLab CI runs even when `changes:` field doesn't match any files
I want my GitLab CI job to run only when one of my doc files at docs/**/*.md or docs/**/*.mdx changes. When I put these patterns in the rules:changes: field, the job always seems to run, even when ...
1
vote
0
answers
75
views
Unable to publish private npm packages with Lerna on GitLab CI (403 error after npm changes)
Since the recent changes on npm regarding authentication and token permissions, we are no longer able to publish private packages in our monorepo using Lerna in our CI/CD pipeline on a self-hosted ...
Best practices
1
vote
1
replies
48
views
Multi repository synchronisation for deployment
For a crew project I have 2 gitlab repositories (backend and front-end) and I'd like to improve my CICD. As of now, when I merge a PR, it deploys on a ""development environment"" ...
0
votes
3
answers
111
views
Example .gitlab-ci.yml for Laravel 12 with MariaDB that seeds database before running php artisan test
I'm setting up a GitLab Runner for a Laravel 12 project and I want my CI pipeline to do the following:
Spin up a MariaDB service for the tests
Run php artisan migrate:fresh --seed to seed the ...
0
votes
0
answers
39
views
Gitlab CI: Rules based on array parameter
Is there a solution to create a rule that check if an array parameter contains a given element?
Below example is not a valid one.
spec:
inputs:
ARRAY:
type: array
...
Best practices
0
votes
0
replies
44
views
Gitlab show result from multiple pipelines on Merge Request page
We aare developing new features for our code which we use merge requests in Gitlab to a release branch where all features are collected. When doing the actual release we do a MR from release branch to ...
Advice
0
votes
2
replies
54
views
How to replicate locally automated API tests within gitlab CI
Let's say you have a repository in gitlab. For facilitated distribution of the application and according development throughout a team, you convert the app into a Docker Container, which can be ...
Best practices
0
votes
0
replies
37
views
screenshot unreal app in windows ci pipeline
Is there a best practice to capture screenshots of an unreal app when performing a test in a gitlab ci pipeline? gemini suggest using movie render queue w a vnc session or NICE DCV to stimulate a user ...
0
votes
0
answers
131
views
Failing healthcheck of GitLab CI PostgreSQL service
I get this error in my pipelines:
Health check container logs:
2025年11月18日T09:45:19.064500182Z FATAL: No HOST or PORT found
Service container logs:
2025年11月18日T09:45:19.061855973Z ...
3
votes
1
answer
197
views
Testcontainers Oracle XE works locally but fails with ORA-12514 on GitLab CI using Podman service
I'm running integration tests using Testcontainers with Oracle XE.
Locally, everything works fine.
On GitLab CI, using a Kubernetes executor with Podman as a Docker service, the tests fail with:
java....
Advice
1
vote
3
replies
98
views
How to make `git branch --show-current` work on GitLab?
There are several questions on stack overflow asking how to get the current branch name on GitLab. The interwebz are full of countless variations of that same question. The answer that is always ...
0
votes
1
answer
68
views
DevSecOps pipeline — scans run on test branch, but devs keep pushing to dev/preprod/prod, how to ensure new code is scanned before production?
I’m an intern working in DevSecOps. Our repo uses branches: test, dev, preprod, prod. I’ve set up scans (SAST, container scan , DAST ) triggered from the test branch.
But the dev team often pushes ...
Advice
2
votes
0
replies
59
views
Is it allowed to put anything in a hidden GitLab job
GitLab seem to accept jobs containing anything, including keywords that aren't normally allowed in a job. I've not tested, but this question even suggest that one could even make the hidden job a ...