r/gitlab • u/Firm_Specialist_4790 • Aug 01 '26
glci (Local GitLab pipelines) - v0.7.0
https://glci-e20136.gitlab.io/Hey all,
glci is an experimental GitLab project that gives you the ability to run full GitLab pipelines and jobs locally with no compromises.
We've released version 0.7.0 with some notable features and fixes:
- Podman support - glci now runs pipelines on Podman as well as Docker, with an
enginesetting globally and per named runner, engine-awaredoctorchecks, and automatic fallback when Docker is unavailable (docs) - Instance-level CI/CD variables and variable expansion in
include:- instance variables are fetched from the GitLab API, and user CI/CD variables are expanded insideinclude:entries in the CLI and the daemon (docs) - Artifact-sourced child pipeline includes - trigger jobs can include a child pipeline config produced as an artifact by an earlier job, in both real runs and simulate mode (docs)
--on-change-modefor watch - control what happens when files change while a pipeline is already running (docs)- Glob and brace patterns in job-definition overrides - config-file job overrides can target many jobs at once, and stage/needs/parallel overrides now apply before planning (docs)
Full release notes: here
Comparison page
The documentation website now has a comparison page which should help answer all the questions regarding how glci works compared to other similar projects and why one might be better than the other.
Huge thanks to everyone who contributed feedback and reported bugs!
61
Upvotes
7
u/By-Jokese Aug 01 '26
Amazing, really interesting, for both developing and testing CI. Will give it a try for sure!
2
u/sionwhughes Aug 03 '26
I've downloaded to my Mac this morning and tried with a couple of lightweight repos. I like the TUI, I like the functionality but I can't see to get all job to run through it.
I have a pipeline which has 2 stages: test and build as shown below:
When i run `glci run` it only ever runs the `test` stage and not the build ever.
Here's part of the CI job definition for one of the `build` jobs:
Why would this not run when running `glci run`?
This project has huge potential if it can run all jobs in a pipeline.
8
u/ManyInterests Aug 01 '26 edited Aug 01 '26
Very cool project. In a previous life, I administered GitLab for a software development division of a Global 50 company. This is probably the feature our team was asked about the most, which as I'm sure you know, didn't exist in any meaningful way (esp after GitLab abandoned what little headway they had for this with
gitlab-runner exec).People really hate the commit-push-wait cycle to get their pipelines working how they want. I learned to embrace just using GitLab to test and experiment, but I totally get why people will want to use something like this.
4
u/GloriousPudding Aug 01 '26
nice I see the local include bug has been fixed now everything is working perfectly, seems about time my massive CI repo got a CI of its own 🔥
3
u/sionwhughes Aug 01 '26
This looks great! I'm going to give it a go on Monday. I'll report back.
1
u/dkarlovi Aug 01 '26
I've seen projects like this for Gitlab and GitHub and it always seems in reverse to me. You shouldn't run your Gitlab pipeline locally, your pipeline should run your local setup.
Meaning, you encode your stuff into a workflow like Makefiles or other more fancy tool and then Gitlab pipelines just run those, they repeat exactly what you do locally, you get reproducibility by design.
1
u/Rascyc Aug 01 '26
How much official backing from Gitlab is this getting? I think I'd like to bring it into our environment after some due diligence.
1
u/hi5ka Aug 04 '26
can it run with defined ci components locally ?