Índice do artigofaltam 3 min de leitura
Runner tags are one of the simplest (and most underused) ways to speed up pipelines in GitLab.
They solve a very specific problem: making sure a job runs on the right runner, at the right time, with the right environment.
This post is part of the series:
CI/CD series map
- Git CI/CD guide for small teams: performance, cache and runners
- GitLab CI: runner tags and job routing
- CI/CD cache: how to design keys and avoid invalid cache (GitHub and GitLab)
- Docker layer caching in CI: BuildKit, buildx, cache-from and cache-to
- Dedicated CI/CD runner: when it pays off and how to plan it in a small team
- macOS runners in CI: Intel vs Apple Silicon, costs and pitfalls
The problem: stuck jobs, jobs on the wrong runner, or an endless queue
Common symptoms:
- A job sits in "pending" for a long time.
- A job runs on a slow runner (and sometimes on a fast one).
- The build works on one runner and breaks on another (architecture, native dependencies, Docker).
The cause is almost always one of these:
- The job has no tags (or has too many, poorly designed ones).
- A "generic" runner accepts everything.
- There is a mix of architectures (ARM64/x64) and routing does not account for it.
How tags work in GitLab CI (in practice)
In GitLab, a runner can have zero or more tags. A job can declare tags in .gitlab-ci.yml.
Fundamental rule:
- If the job declares tags, it can only run on a runner that has all of the job's tags.
- If the runner is configured to accept only tagged jobs, a job with no tags gets "stuck". For the runner to accept untagged jobs, enable the Run untagged jobs option in its settings.
1) Design tags as "execution classes", not nicknames
Avoid tags that are just names ("runner-1", "johns-imac").
Prefer tags that describe capability/environment:
linux-x64linux-arm64macoswindowsdockerbuild-heavygpu(if applicable)
Tip: the best set of tags is the smallest one that still separates your bottlenecks.
2) Create a "default runner" for light jobs
A common trap in small teams is having a single runner that accepts everything.
The result:
- The heavy job (Docker build) blocks the queue.
- The light job (lint) waits behind the heavy job.
A simple strategy:
- Runner A (default): light jobs (lint/quick tests).
- Runner B (heavy): builds and long jobs.
- Runner C (macOS): Apple jobs only.
3) Use tags to separate architecture (ARM64 vs x64)
If you have Apple Silicon, Graviton, or ARM64 anywhere in the pipeline, treat it as an explicit dimension.
- Dependency caches may not be compatible.
- Prebuilt binaries change.
- Docker images must exist for that architecture (or they fall back to emulation).
Example of separate jobs:
build_amd64:
tags: [linux-x64, docker]
script:
- ./ci/build.sh
build_arm64:
tags: [linux-arm64, docker]
script:
- ./ci/build.shIf you use GitLab.com hosted runners, the architecture is already in the tag: saas-linux-small-amd64 (the default) and saas-linux-small-arm64, for example. Larger sizes require a Premium or Ultimate plan: on x86-64 starting at saas-linux-large-amd64 and on Arm64 starting at saas-linux-medium-arm64 (GitLab documentation checked in November 2026).
Further reading:
4) Quick "job stuck" checklist (before blaming GitLab)
- Does the job have tags? Which ones?
- Is there an online runner with those tags?
- Does that runner accept tagged jobs (and is it enabled for this project/group)?
- Is the runner busy with long jobs (queue)?
- Is there an architecture conflict?
Final checklist
- Tags describe environment/capability (not people).
- Light jobs and heavy jobs are separated.
- Architecture (ARM/x64) is explicit in tags and in cache keys.
- The "generic" runner is not accepting everything indiscriminately.
- A short doc: "which tags exist and when to use them".





