Skip to content
Ask for a Budget
TechnologyFebruary 23, 20263 min readUpdated on November 11, 2026

GitLab CI: runner tags and job routing (without the pain)

How to use runner tags in GitLab CI to route jobs (Linux, Windows, macOS, ARM/x64) and avoid queues, wrong runners and inconsistent pipelines.

GitLab CI: runner tags and job routing (without the pain)
Índice do artigo
faltam 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

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-x64
  • linux-arm64
  • macos
  • windows
  • docker
  • build-heavy
  • gpu (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.sh

If 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)

  1. Does the job have tags? Which ones?
  2. Is there an online runner with those tags?
  3. Does that runner accept tagged jobs (and is it enabled for this project/group)?
  4. Is the runner busy with long jobs (queue)?
  5. 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".

References

Also read

Git CI/CD guide for small teams: performance, cache and runnersDedicated runner: when it pays off and how to plan it in a small teamCI/CD caching: how to design keys and avoid stale caches
Previous post
Replit → React: a safe flow from front-end prototype to production
Next post
CI/CD caching: how to design keys and avoid stale caches
Newsletter

One email a month, no noise

What we learn shipping custom software and applied AI.

Related articles

Git CI/CD guide for small teams: performance, cache and runners8 min · Technology
Dedicated runner: when it pays off and how to plan it in a small team2 min · Technology
CI/CD caching: how to design keys and avoid stale caches4 min · Technology
What is a web app and what are its benefits?9 min · Technology
Definitive Low-code Guide: What It Is and When to Use It9 min · Technology

Accelerate your business with X-Apps

Ask for a Budget
X-Apps is an IT provider partner and advised by
Gartner
Receive our e-mails
News on software and applied AI.
Follow X-Apps