Skip to content

CICD-048 · Discover available runner labels ​

Encyclopedia · Gitea runner fundamentals · All snippets

Previous · CICD-047 · Next · CICD-049

1. Where it fits ​

  • Placement Bash run step following checkout, or equivalent lab terminal.
  • Prerequisites Gitea Actions enabled, authorized trusted runner registered and local repository checked out when needed.
  • Platforms gitea-actions.

2. Copy the snippet ​

bash
act_runner --version
act_runner generate-config | sed -n '/labels:/,+6p'

3. How it works ​

The generated configuration shows default labels for this runner binary. The running service can use a different config, which controls the actual executor mapping.

4. Verify the result ​

Generated labels are defaults. Check the running runner's configuration and server UI for authoritative state.

Validation syntax-validated (Bash parse). Status definitions.