GitLab Runner: Step 4: Run your first pipeline
This documentation is part of the Getting started guide. You can view the complete guide here: Connect your Stackhero GitLab Runner to GitLab.com, Stackhero for GitLab, or your own GitLab server and launch your first pipeline in just a few minutes.
👋 Welcome to the Stackhero documentation!
Stackhero offers a simple GitLab Runner cloud solution that makes running your GitLab CI/CD jobs efficient and straightforward. Here’s what you can expect:
- Unlimited CI/CD minutes: run your pipelines as often as you need, with no per-minute billing or unexpected fees.
- Multiple concurrent jobs: speed up your development by running several jobs in parallel.
- The Docker executor with Docker-in-Docker support: easily build and push container images as part of your CI/CD workflows.
- Works seamlessly with both GitLab.com and self-managed GitLab instances.
- A private, dedicated infrastructure with fast NVMe/SSD storage ensures stable and predictable build performance.
- Available in 🇪🇺 Europe and 🇺🇸 USA regions to meet your team's needs.
Save time: you can connect your first GitLab Runner and start running pipelines in just a few minutes!
Add a .gitlab-ci.yml file at the root of your repository to define your pipeline:
stages:
- build
- test
build:
stage: build
image: node:22
script:
- npm ci
- npm run build
test:
stage: test
image: node:22
script:
- npm test
Commit and push your changes. GitLab will trigger a pipeline, and your Stackhero runner will execute the jobs. If you added tags when creating the runner, you can target them in your jobs like this:
build:
stage: build
tags:
- stackhero
image: node:22
script:
- npm ci
- npm run build
Your pipelines now run on your dedicated runner, with unlimited build minutes and no usage limits to manage.